1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: Update for wxPython 3.0
These changes should remain compatible with wxPython 2.8.
Bug-Debian: https://bugs.debian.org/759067
Forwarded: no
Last-Update: 2014-09-10
--- rurple-ng-0.5+16.orig/rurple/ui.py
+++ rurple-ng-0.5+16/rurple/ui.py
@@ -137,7 +137,7 @@ class Openable(object):
dlg = wx.FileDialog(self._ui,
message="Open %s..." % self._type,
wildcard=self._wildcard,
- style = wx.OPEN | wx.CHANGE_DIR)
+ style = wx.FD_OPEN | wx.FD_CHANGE_DIR)
if dlg.ShowModal() != wx.ID_OK:
return
path = self._suffixPath(dlg.GetPath())
@@ -157,7 +157,7 @@ class Openable(object):
dlg = wx.FileDialog(self._ui,
message="Open sample %s..." % self._type,
wildcard=self._wildcard,
- defaultDir = share.path(self._type + "s"), style = wx.OPEN)
+ defaultDir = share.path(self._type + "s"), style = wx.FD_OPEN)
if dlg.ShowModal() != wx.ID_OK:
return
path = self._suffixPath(dlg.GetPath())
@@ -183,7 +183,7 @@ class Openable(object):
dlg = wx.FileDialog(self._ui,
message="Save %s as..." % self._type,
wildcard=self._wildcard,
- style = wx.SAVE | wx.CHANGE_DIR)
+ style = wx.FD_SAVE | wx.FD_CHANGE_DIR)
if dlg.ShowModal() != wx.ID_OK:
return False
path = self._suffixPath(dlg.GetPath())
|