Author: Andreas Tille <tille@debian.org>
Last-Update: Mon, 25 Aug 2014 14:53:28 +0200
Bug-Debian: http://bugs.debian.org/759070
Description: Use wxpy30-update to create a patch that enables wxpython3.0

--- a/src/edclasses.py
+++ b/src/edclasses.py
@@ -140,7 +140,7 @@ def save_figure(self, evt=None):
     # remove last |
     fieltypestring = fieltypestring[:-1]
     dlg = wx.FileDialog(parent, "Save figure", dirname, filename, 
-           fieltypestring, wx.SAVE|wx.OVERWRITE_PROMPT)
+           fieltypestring, wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)
     # png is default
     dlg.SetFilterIndex(keys.index("png"))
     # user cannot do anything until he clicks "OK"
--- a/src/frontend.py
+++ b/src/frontend.py
@@ -456,7 +456,7 @@ class MyFrame(wx.Frame):
         # Add a model using the dialog.
         filters = "text file (*.txt)|*.txt"
         dlg = wx.FileDialog(self, "Open model file", 
-                            self.dirname, "", filters, wx.OPEN)
+                            self.dirname, "", filters, wx.FD_OPEN)
         if dlg.ShowModal() == wx.ID_OK:
             NewModel = usermodel.UserModel(self)
             # Workaround since 0.7.5
@@ -721,7 +721,7 @@ class MyFrame(wx.Frame):
                 # This is wx widgets stuff.
                 filters = filters+"|"
         dlg = wx.FileDialog(self, "Open data file", 
-            self.dirname, "", filters, wx.OPEN)
+            self.dirname, "", filters, wx.FD_OPEN)
         if dlg.ShowModal() == wx.ID_OK:
             # The filename the page will get
             path = dlg.GetPath()            # Workaround since 0.7.5
@@ -974,7 +974,7 @@ class MyFrame(wx.Frame):
                 # Add a separator if item is not last item
                 filters = filters+"|"
         dlg = wx.FileDialog(self, "Open data files", 
-            self.dirname, "", filters, wx.OPEN|wx.FD_MULTIPLE)
+            self.dirname, "", filters, wx.FD_OPEN|wx.FD_MULTIPLE)
         if dlg.ShowModal() == wx.ID_OK:
             Datafiles = dlg.GetFilenames()
             # We rely on sorted filenames
--- a/src/openfile.py
+++ b/src/openfile.py
@@ -54,7 +54,7 @@ def ImportParametersYaml(parent, dirname
     wc = [".pcfs", ".fcsfit-session.zip"]
     wcstring = "PyCorrFit session (*.pcfs)|*{};*{}".format(wc[0], wc[1])
     dlg = wx.FileDialog(parent, "Open session file", dirname, "", 
-                                 wcstring, wx.OPEN)
+                                 wcstring, wx.FD_OPEN)
     # user cannot do anything until he clicks "OK"
     if dlg.ShowModal() == wx.ID_OK:
         path = dlg.GetPath()            # Workaround since 0.7.5
@@ -94,7 +94,7 @@ def OpenSession(parent, dirname, session
     wcstring = "PyCorrFit session (*.pcfs)|*{};*{}".format(wc[0], wc[1])
     if sessionfile is None:
         dlg = wx.FileDialog(parent, "Open session file", dirname, "", 
-                        wcstring, wx.OPEN)
+                        wcstring, wx.FD_OPEN)
         # user cannot do anything until he clicks "OK"
         if dlg.ShowModal() == wx.ID_OK:
             path = dlg.GetPath()            # Workaround since 0.7.5
@@ -359,7 +359,7 @@ def SaveSession(parent, dirname, Infodic
     """
     dlg = wx.FileDialog(parent, "Save session file", dirname, "",
                         "PyCorrFit session (*.pcfs)|*.pcfs",
-                        wx.SAVE|wx.FD_OVERWRITE_PROMPT)
+                        wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)
     if dlg.ShowModal() == wx.ID_OK:
         path = dlg.GetPath()            # Workaround since 0.7.5
         (dirname, filename) = os.path.split(path)
@@ -610,7 +610,7 @@ def saveCSV(parent, dirname, Page):
     dlg = wx.FileDialog(parent, "Save curve", dirname, filename, 
           "Correlation with trace (*.csv)|*.csv;*.CSV"+\
           "|Correlation only (*.csv)|*.csv;*.CSV",
-           wx.SAVE|wx.FD_OVERWRITE_PROMPT)
+           wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)
     # user cannot do anything until he clicks "OK"
     if dlg.ShowModal() == wx.ID_OK:
         path = dlg.GetPath()            # Workaround since 0.7.5
--- a/src/tools/background.py
+++ b/src/tools/background.py
@@ -276,7 +276,7 @@ class BackgroundCorrection(wx.Frame):
                 # Add a separator
                 filters = filters+"|"
         dlg = wx.FileDialog(self, "Choose a data file", 
-            self.parent.dirname, "", filters, wx.OPEN)
+            self.parent.dirname, "", filters, wx.FD_OPEN)
         if dlg.ShowModal() == wx.ID_OK:
             # Workaround since 0.7.5
             (dirname, filename) = os.path.split(dlg.GetPath())
--- a/src/tools/statistics.py
+++ b/src/tools/statistics.py
@@ -606,7 +606,7 @@ class Stat(wx.Frame):
         dirname = self.parent.dirname
         dlg = wx.FileDialog(self.parent, "Choose file to save", dirname,
                 "", "Text file (*.txt)|*.txt;*.TXT",
-                wx.SAVE|wx.FD_OVERWRITE_PROMPT)
+                wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)
         # user cannot do anything until he clicks "OK"
         if dlg.ShowModal() == wx.ID_OK:
             filename = dlg.GetPath()
