Reverted to old method names/signatures for wx.DC, updated lib and
demo to match. Also fixed some deprecation warnings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -22,12 +22,12 @@ class TestPanel(wx.Panel):
|
||||
self.fbbh = filebrowse.FileBrowseButtonWithHistory(
|
||||
self, -1, (20, 50), (450, -1), changeCallback = self.fbbhCallback
|
||||
)
|
||||
|
||||
|
||||
self.dbb = filebrowse.DirBrowseButton(
|
||||
self, -1, (20, 80), (450, -1), changeCallback = self.dbbCallback
|
||||
)
|
||||
|
||||
self.fbbh.SetHistory(['You', 'can', 'put', 'some', 'file', 'names', 'here'])
|
||||
self.fbbh.SetHistory(['You', 'can', 'put', 'some', 'filenames', 'here'])
|
||||
|
||||
|
||||
def fbbCallback(self, evt):
|
||||
@@ -39,8 +39,10 @@ class TestPanel(wx.Panel):
|
||||
value = evt.GetString()
|
||||
self.log.write('FileBrowseButtonWithHistory: %s\n' % value)
|
||||
history = self.fbbh.GetHistory()
|
||||
history.append(value)
|
||||
self.fbbh.SetHistory(history)
|
||||
if value not in history:
|
||||
history.append(value)
|
||||
self.fbbh.SetHistory(history)
|
||||
self.fbbh.GetHistoryControl().SetStringSelection(value)
|
||||
|
||||
|
||||
def dbbCallback(self, evt):
|
||||
|
Reference in New Issue
Block a user