Control: tags 759068 + patch Dear maintainer,
Here's a patch to update pytimechart for wxPython 3.0. I'm unable to test these changes, as pytimechart fails with an error when run (even in the existing package in unstable - I've filed that as #761140). Cheers, Olly
diff -Nru pytimechart-1.0.0~rc1/debian/changelog pytimechart-1.0.0~rc1/debian/changelog --- pytimechart-1.0.0~rc1/debian/changelog 2012-08-16 20:15:27.000000000 -0300 +++ pytimechart-1.0.0~rc1/debian/changelog 2014-09-10 21:52:26.000000000 -0300 @@ -1,3 +1,11 @@ +pytimechart (1.0.0~rc1-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * Update for wxPython 3.0 (Closes: #759068): + - New patch: wxpython3.0.patch + + -- Olly Betts <o...@survex.com> Thu, 11 Sep 2014 00:52:01 +0000 + pytimechart (1.0.0~rc1-3) unstable; urgency=high [ Andrew Starr-Bochicchio ] diff -Nru pytimechart-1.0.0~rc1/debian/control pytimechart-1.0.0~rc1/debian/control --- pytimechart-1.0.0~rc1/debian/control 2012-08-16 20:08:48.000000000 -0300 +++ pytimechart-1.0.0~rc1/debian/control 2014-09-10 21:50:41.000000000 -0300 @@ -13,7 +13,7 @@ Package: pytimechart Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, - python-enthoughtbase, python-chaco, python-wxgtk2.8, python-gtk2 + python-enthoughtbase, python-chaco, python-wxgtk3.0, python-gtk2 XB-Python-Version: ${python:Versions} Description: GUI Viewer for Linux kernel traces PyTimechart provides explorability and overall visualization of Linux diff -Nru pytimechart-1.0.0~rc1/debian/patches/series pytimechart-1.0.0~rc1/debian/patches/series --- pytimechart-1.0.0~rc1/debian/patches/series 2011-11-14 00:30:07.000000000 -0300 +++ pytimechart-1.0.0~rc1/debian/patches/series 2014-09-10 21:51:16.000000000 -0300 @@ -1 +1,2 @@ ETS4_api.diff +wxpython3.0.patch diff -Nru pytimechart-1.0.0~rc1/debian/patches/wxpython3.0.patch pytimechart-1.0.0~rc1/debian/patches/wxpython3.0.patch --- pytimechart-1.0.0~rc1/debian/patches/wxpython3.0.patch 1969-12-31 21:00:00.000000000 -0300 +++ pytimechart-1.0.0~rc1/debian/patches/wxpython3.0.patch 2014-09-10 21:51:55.000000000 -0300 @@ -0,0 +1,26 @@ +Description: Update for wxPython 3.0 + These changes should remain compatible with wxPython 2.8. +Bug-Debian: https://bugs.debian.org/759068 +Forwarded: no +Last-Update: 2014-09-10 + +--- pytimechart-1.0.0~rc1.orig/timechart/window.py ++++ pytimechart-1.0.0~rc1/timechart/window.py +@@ -103,7 +103,7 @@ prof = 0 + + import wx + def open_dialog(): +- dlg = wx.FileDialog(None, "Choose a file", "", "", "*.txt;*.gz;*.lzma;*.dat", wx.OPEN) ++ dlg = wx.FileDialog(None, "Choose a file", "", "", "*.txt;*.gz;*.lzma;*.dat", wx.FD_OPEN) + rv = None + if dlg.ShowModal() == wx.ID_OK: + filename=dlg.GetFilename() +@@ -114,7 +114,7 @@ def open_dialog(): + return rv + + def save_dialog(): +- dlg = wx.FileDialog(None, "Save file...", "", "", "*.txt", wx.SAVE) ++ dlg = wx.FileDialog(None, "Save file...", "", "", "*.txt", wx.FD_SAVE) + rv = None + if dlg.ShowModal() == wx.ID_OK: + filename=dlg.GetFilename()