Revert "Fix preferenceDialog list view width" and actually fix it. OS X untested
This reverts commit 9ba3ca3f5f.
This commit is contained in:
@@ -372,7 +372,8 @@ class MainFrame(wx.Frame):
|
||||
|
||||
def showPreferenceDialog(self, event):
|
||||
dlg = PreferenceDialog(self)
|
||||
dlg.Show()
|
||||
dlg.ShowModal()
|
||||
dlg.Destroy()
|
||||
|
||||
def goWiki(self, event):
|
||||
wx.LaunchDefaultBrowser('https://github.com/DarkFenX/Pyfa/wiki')
|
||||
|
||||
@@ -33,8 +33,8 @@ class PreferenceDialog(wx.Dialog):
|
||||
self.listbook = wx.Listbook(self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LB_DEFAULT)
|
||||
|
||||
self.listview = self.listbook.GetListView()
|
||||
self.listview.SetMinSize((500, -1))
|
||||
self.listview.SetSize((500, -1))
|
||||
#self.listview.SetMinSize((500, -1))
|
||||
#self.listview.SetSize((500, -1))
|
||||
|
||||
self.imageList = wx.ImageList(32,32)
|
||||
self.listbook.SetImageList(self.imageList)
|
||||
@@ -77,4 +77,4 @@ class PreferenceDialog(wx.Dialog):
|
||||
self.btnOK.Bind(wx.EVT_BUTTON, self.OnBtnOK)
|
||||
|
||||
def OnBtnOK(self, event):
|
||||
self.Destroy()
|
||||
self.Destroy()
|
||||
|
||||
Reference in New Issue
Block a user