[Python-apps-commits] r11278 - in packages/pype/trunk/debian (4 files)
anoteng-guest at users.alioth.debian.org
anoteng-guest at users.alioth.debian.org
Thu Sep 11 18:27:01 UTC 2014
Date: Thursday, September 11, 2014 @ 18:27:00
Author: anoteng-guest
Revision: 11278
Add support for wxpython3.0
Added:
packages/pype/trunk/debian/patches/wxpython3.0.patch
Modified:
packages/pype/trunk/debian/changelog
packages/pype/trunk/debian/control
packages/pype/trunk/debian/patches/series
Modified: packages/pype/trunk/debian/changelog
===================================================================
--- packages/pype/trunk/debian/changelog 2014-09-11 11:56:03 UTC (rev 11277)
+++ packages/pype/trunk/debian/changelog 2014-09-11 18:27:00 UTC (rev 11278)
@@ -1,9 +1,16 @@
-pype (2.9.4-2) UNRELEASED; urgency=low
+pype (2.9.4-2) unstable; urgency=low
+ * Bump Standards-Version (no change)
+
+ [Jakub Wilk]
* Use canonical URIs for Vcs-* fields.
- -- Jakub Wilk <jwilk at debian.org> Sun, 05 May 2013 18:05:36 +0200
+ [Olly Betts]
+ * Update for wxPython 3.0 (Closes: #758957):
+ - New patch: wxpython3.0.patch
+ -- Andreas Noteng <andreas at noteng.no> Thu, 11 Sep 2014 20:09:07 +0200
+
pype (2.9.4-1) unstable; urgency=low
* New upstream release
Modified: packages/pype/trunk/debian/control
===================================================================
--- packages/pype/trunk/debian/control 2014-09-11 11:56:03 UTC (rev 11277)
+++ packages/pype/trunk/debian/control 2014-09-11 18:27:00 UTC (rev 11278)
@@ -4,14 +4,14 @@
Maintainer: Andreas Noteng <andreas at noteng.no>
Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
Build-Depends: bomstrip, debhelper (>= 8.1.0), dos2unix, python (>= 2.6.6-3~)
-Standards-Version: 3.9.4
+Standards-Version: 3.9.5
Homepage: http://pype.sourceforge.net/index.shtml
Vcs-Svn: svn://anonscm.debian.org/python-apps/packages/pype/trunk/
Vcs-Browser: http://anonscm.debian.org/viewvc/python-apps/packages/pype/trunk/
Package: pype
Architecture: all
-Depends: python-wxgtk2.8, python-wxversion, ${misc:Depends}, ${python:Depends}
+Depends: python-wxgtk3.0, python-wxversion, ${misc:Depends}, ${python:Depends}
Description: Python programmers editor
PyPE (Python Programmers Editor) is a lightweight but powerful
editor. Tools for the new and seasoned user alike are included
Modified: packages/pype/trunk/debian/patches/series
===================================================================
--- packages/pype/trunk/debian/patches/series 2014-09-11 11:56:03 UTC (rev 11277)
+++ packages/pype/trunk/debian/patches/series 2014-09-11 18:27:00 UTC (rev 11278)
@@ -1,3 +1,4 @@
#command-shell.patch
#interpreter.py_warning.patch
move_help_file.patch
+wxpython3.0.patch
Added: packages/pype/trunk/debian/patches/wxpython3.0.patch
===================================================================
--- packages/pype/trunk/debian/patches/wxpython3.0.patch (rev 0)
+++ packages/pype/trunk/debian/patches/wxpython3.0.patch 2014-09-11 18:27:00 UTC (rev 11278)
@@ -0,0 +1,129 @@
+Description: Updates for wxPython 3.0
+ These changes should remain compatible with wxPython 2.8.
+Author: Olly Betts <olly at survex.com>
+Bug-Debian: https://bugs.debian.org/758957
+Forwarded: https://sourceforge.net/p/pype/bugs/43/
+Last-Update: 2014-09-05
+
+Index: pype-2.9.4/plugins/interpreter.py
+===================================================================
+--- pype-2.9.4.orig/plugins/interpreter.py
++++ pype-2.9.4/plugins/interpreter.py
+@@ -966,7 +966,6 @@ class MyShellFrame(wx.Frame):
+
+ def main():
+ app = wx.App(0)
+- wx.InitAllImageHandlers()
+ frame = MyShellFrame()
+ frame.Show()
+ app.SetTopWindow(frame)
+Index: pype-2.9.4/pype.py
+===================================================================
+--- pype-2.9.4.orig/pype.py
++++ pype-2.9.4/pype.py
+@@ -1420,7 +1420,8 @@ class MainWindow(wx.Frame):
+ self.menubar.Check(DOCUMENT_LIST_OPTION_TO_ID2[document_options2], 1)
+ self.menubar.Check(SHOW_RECENT, show_recent)
+ self.menubar.Check(SHOW_SEARCH, show_search)
+- self.menubar.Check(MIDDLE_CL, MIDDLE_PASTE)
++ if sys.platform.startswith('win32'):
++ self.menubar.Check(MIDDLE_CL, MIDDLE_PASTE)
+
+ for i in TOOLS_ENABLE_L:
+ if i[4] in window_management.enabled:
+@@ -2226,7 +2227,7 @@ class MainWindow(wx.Frame):
+ def OnSaveAs(self,e,upd=1):
+ wnum, win = self.getNumWin(e)
+
+- dlg = wx.FileDialog(self, "Save file as...", current_path, "", "All files (*.*)|*.*", wx.SAVE|wx.OVERWRITE_PROMPT)
++ dlg = wx.FileDialog(self, "Save file as...", current_path, "", "All files (*.*)|*.*", wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)
+ rslt = dlg.ShowModal()
+ if rslt == wx.ID_OK:
+ fn=dlg.GetFilename()
+@@ -2296,7 +2297,7 @@ class MainWindow(wx.Frame):
+
+ def OnOpen(self,e):
+ wd = self.config.get('lastpath', current_path)
+- dlg = wx.FileDialog(self, "Choose a/some file(s)...", wd, "", wildcard, wx.OPEN|wx.MULTIPLE)
++ dlg = wx.FileDialog(self, "Choose a/some file(s)...", wd, "", wildcard, wx.FD_OPEN|wx.FD_MULTIPLE)
+ if dlg.ShowModal() == wx.ID_OK:
+ self.OnDrop(dlg.GetPaths())
+ self.config['lp'] = dlg.GetDirectory()
+@@ -2345,7 +2346,7 @@ class MainWindow(wx.Frame):
+ if "lastopen" in self.config:
+ self.OnDrop(self.config['lastopen'], 1)
+ def AddSearchPath(self, e):
+- dlg = wx.DirDialog(self, "Choose a path", "", style=wx.DD_DEFAULT_STYLE|wx.DD_NEW_DIR_BUTTON)
++ dlg = wx.DirDialog(self, "Choose a path", "", style=wx.DD_DEFAULT_STYLE)
+ if dlg.ShowModal() == wx.ID_OK:
+ path = os.path.normcase(os.path.normpath(dlg.GetPath()))
+ if not (path in self.config['modulepaths']) and not (path in sys.path):
+@@ -3380,7 +3381,7 @@ class MainWindow(wx.Frame):
+ dlg = wx.FileDialog(
+ self, message="Choose a Python Interpreter", defaultDir=wd,
+ defaultFile="", wildcard="All files (*.*)|*.*",
+- style=wx.OPEN|wx.HIDE_READONLY|wx.FILE_MUST_EXIST
++ style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST
+ )
+
+ x = interpreter.python_choices[:]
+Index: pype-2.9.4/plugins/documents.py
+===================================================================
+--- pype-2.9.4.orig/plugins/documents.py
++++ pype-2.9.4/plugins/documents.py
+@@ -109,11 +109,8 @@ class MyNB(BaseNotebook):
+ def __init__(self, root, id, parent):
+ BaseNotebook.__init__(self, parent, id, style=_style)
+ self.root = root
+- if WHICHNB != 2:
+- if __main__.USE_DOC_ICONS:
+- self.AssignImageList(__main__.IMGLIST2)
+- else:
+- self.imagelist = __main__.IMGLIST3
++ if __main__.USE_DOC_ICONS:
++ self.AssignImageList(__main__.IMGLIST2)
+
+ #for some reason, the notebook needs the next line...the text control
+ #doesn't.
+@@ -156,11 +153,6 @@ class MyNB(BaseNotebook):
+ if self.GetPageCount():
+ self.GetPage(self.GetSelection()).GetWindow1().SetFocus()
+
+- def GNBI(self, i):
+- if WHICHNB == 2:
+- return self.imagelist[i]
+- return i
+-
+ def GetCurrentPage(self):
+ x = self.GetSelection()
+ if x >= 0:
+@@ -330,7 +322,7 @@ class MyNB(BaseNotebook):
+
+ def AddPage(self, page, text, switch=1):
+ which = __main__.GDI(text)
+- BaseNotebook.AddPage(self, page, text, switch, self.GNBI(which))
++ BaseNotebook.AddPage(self, page, text, switch, which)
+ self.root.dragger._AddItem(text)
+ if switch or self.GetPageCount() == 1:
+ self.root.OnDocumentChange(page.GetWindow1())
+@@ -341,7 +333,7 @@ class MyNB(BaseNotebook):
+
+ def InsertPage(self, posn, page, text, switch=1):
+ which = __main__.GDI(text)
+- BaseNotebook.InsertPage(self, posn, page, text, switch, self.GNBI(which))
++ BaseNotebook.InsertPage(self, posn, page, text, switch, which)
+ self.root.dragger._InsertItem(posn, text)
+ if self.GetSelection() == posn or switch:
+ self.root.OnDocumentChange(page.GetWindow1())
+@@ -403,10 +395,7 @@ class MyNB(BaseNotebook):
+ self._seen()
+
+ def SetPageImage(self, which, img):
+- if WHICHNB == 2:
+- self.SetPageBitmap(which, self.GNBI(img))
+- else:
+- BaseNotebook.SetPageImage(self, which, img)
++ BaseNotebook.SetPageImage(self, which, img)
+
+ def _seen(self):
+ if not self.cs:
More information about the Python-apps-commits
mailing list