Designer-0.5 on newer distro
Randall Whitman <[email protected]> Thu, 19 May 2011 10:31:50 -0700
| Newsgroups | gmane.comp.gnu.enterprise.devel |
|---|---|
| Message-ID | <15819.1305826310@randall-desktop> |
When looking at GNUe Designer-0.x+bzr, I have found it helpful to compare
with Designer-0.5 . In case this is of use to anyone else, below are the
patches I applied to make Designer-0.5.4 run on Ubuntu-10.04-lucid with
GNUe-Common Version 0.5.5
GNUe-Forms Version 0.5.5
wxPython Version 2.8.10.1
Python Version 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3]
/Randall <http://whizman.com>
--- GNUe-Designer-0.5.4/src/base/TemplateParser.orig 2004-03-27 02:33:02.000000000 -0800
+++ GNUe-Designer-0.5.4/src/base/TemplateParser.py 2011-05-19 09:56:19.000000000 -0700
@@ -692,7 +692,7 @@
self.seq = seq
def fieldEventTrap(self, event):
- keycode = event.KeyCode()
+ keycode = event.KeyCode
if keycode in (WXK_RETURN, WXK_TAB):
if self.seq < len(self.app.textctrlList) - 1:
self.app.textctrlList[self.seq+1].SetFocus()
--- GNUe-Designer-0.5.4/src/base/docks/DockedPane.orig 2004-03-27 02:33:06.000000000 -0800
+++ GNUe-Designer-0.5.4/src/base/docks/DockedPane.py 2011-05-03 13:22:20.000000000 -0700
@@ -28,6 +28,7 @@
__all__ = ['DockedPane']
+import sys # 2011-05-02
from wxPython.wx import *
TITLEBAR_ACTIVE = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_HIGHLIGHT)
--- GNUe-Designer-0.5.4/src/base/tools/PropertyEditor.orig 2004-03-27 02:33:05.000000000 -0800
+++ GNUe-Designer-0.5.4/src/base/tools/PropertyEditor.py 2011-05-03 15:08:46.000000000 -0700
@@ -128,7 +128,7 @@
def __init__(self, editor, parent):
wxScrolledWindow.__init__(self, parent, -1, style = wxHSCROLL)
- self.splitter = splitter = wxSplitterWindow(self, -1, style=wxSP_FULLSASH | wxSP_NOBORDER)
+ self.splitter = splitter = wxSplitterWindow(self, -1, style=wxSP_3D | wxSP_NOBORDER)
self.object = None
self.editor = editor
self.fields = []
--- GNUe-Designer-0.5.4/src/base/Icons.orig 2004-03-27 02:33:06.000000000 -0800
+++ GNUe-Designer-0.5.4/src/base/Icons.py 2011-05-03 13:20:56.000000000 -0700
@@ -27,6 +27,7 @@
#
import os
+import sys # 2011-05-02
from wxPython.wx import *
from wxPython import __version__
from gnue.common.apps import GConfig
--- GNUe-Forms-0.5.5/src/uidrivers/wx/UILoginHandler.orig 2004-03-05 17:38:38.000000000 -0800
+++ GNUe-Forms-0.5.5/src/uidrivers/wx/UILoginHandler.py 2011-05-19 10:08:00.000000000 -0700
@@ -243,11 +243,11 @@
self.seq = seq
def loginFieldEventTrap(self, event):
- if event.KeyCode() in (WXK_RETURN, WXK_TAB):
+ if event.KeyCode in (WXK_RETURN, WXK_TAB):
if self.seq < len(self.app.textctrlList) - 1:
self.app.textctrlList[self.seq+1].SetFocus()
else:
- if event.KeyCode() == WXK_TAB:
+ if event.KeyCode == WXK_TAB:
if event.ShiftDown():
self.app.textctrlList[self.seq-1].SetFocus()
else: