Added a close button for item stats dlg if platform is wxGTK (there's no window close button for Gnome 3 dlgs)

This commit is contained in:
HomeWorld
2011-09-27 21:30:16 +03:00
parent 95ed4b60fd
commit bd3a3f9878

View File

@@ -69,6 +69,12 @@ class ItemStatsDialog(wx.Dialog):
self.mainSizer = wx.BoxSizer(wx.VERTICAL)
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, u"Close", wx.DefaultPosition, wx.DefaultSize, 0 )
self.mainSizer.Add( self.closeBtn, 0, wx.ALL|wx.ALIGN_RIGHT, 5 )
self.closeBtn.Bind(wx.EVT_BUTTON, self.closeEvent)
self.SetSizer(self.mainSizer)
self.parentWnd = gui.mainFrame.MainFrame.getInstance()