File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/dabo/dabo/ui/uiwx/dMenuItem.py",
line 54
<<<<<<< .mine
^
SyntaxError: invalid syntax
from dabo/ui/uiwx/dMenuItem.py:
"""
def __onWxMenuHighlight(self, evt):
self.raiseEvent(dEvents.MenuHighlight)
evt.Skip()
<<<<<<< .mine
def __onWxHit(self, evt):
self.raiseEvent(dEvents.Hit, evt)
evt.Skip(False)
=======
def _redefine(self):
"""Combine the Caption and HotKey into the format needed by
wxPython."""
cap = self.Caption
hk = self.HotKey
if hk:
cap = "%s\t%s" % (cap, hk)
curr = self.GetText()
def toUni(s):
if isinstance(s, str):
try:
enc = self.Application.Encoding
except AttributeError:
enc = dabo.defaultEncoding
s = unicode(s, enc)
return s
if toUni(cap) != toUni(curr):
## Win32 seems to need to clear the caption first, or
funkiness
## can arise. And win32 in wx2.8 needs for the caption
to never be
## an empty string, or you'll get an invalid stock id
assertion.
self.SetText(" ")
if cap == "":
cap = " "
self.SetText(cap)
>>>>>>> .r4123
"""
WHO COMMITS SUCH A CRAP???
Don't you test your code before committing?
It's not really hidden, you get the error as soon as you call
dabo.ui.loadUI('wx')
Sorry for shouting.
Greetlings, Hraban
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]