Remove some GTK-specific close buttons (as gnome now has close titlebar in dialogs for a while) and resize some dialogs
This commit is contained in:
@@ -90,8 +90,9 @@ class ItemStatsDialog(wx.Dialog):
|
||||
" (%d)" % item.ID if config.debug else ""))
|
||||
|
||||
self.SetMinSize((300, 200))
|
||||
if "wxGTK" in wx.PlatformInfo: # GTK has huge tab widgets, give it a bit more room
|
||||
self.SetSize((640, 620))
|
||||
# GTK has huge tab widgets, give it a bit more room
|
||||
if "wxGTK" in wx.PlatformInfo:
|
||||
self.SetSize((640, 600))
|
||||
else:
|
||||
self.SetSize((550, 500))
|
||||
# self.SetMaxSize((500, -1))
|
||||
@@ -99,11 +100,6 @@ class ItemStatsDialog(wx.Dialog):
|
||||
self.container = ItemStatsContainer(self, victim, item, itmContext)
|
||||
self.mainSizer.Add(self.container, 1, wx.EXPAND)
|
||||
|
||||
if "wxGTK" in wx.PlatformInfo:
|
||||
self.closeBtn = wx.Button(self, wx.ID_ANY, "Close", wx.DefaultPosition, wx.DefaultSize, 0)
|
||||
self.mainSizer.Add(self.closeBtn, 0, wx.ALL | wx.ALIGN_RIGHT, 5)
|
||||
self.closeBtn.Bind(wx.EVT_BUTTON, (lambda e: self.Close()))
|
||||
|
||||
self.SetSizer(self.mainSizer)
|
||||
|
||||
self.parentWnd = gui.mainFrame.MainFrame.getInstance()
|
||||
|
||||
Reference in New Issue
Block a user