Re: [dabo-dev] Confused about ui pathing

Author: Ed Leafe

Posted: 2004-09-01 at 11:24:50

On Sep 1, 2004, at 11:51 AM, Paul McNett wrote:

>> As a follow-up, all the controls seem to be broken now:

>

> No, just the tests for the controls. Fixed in the recent commit.

Hmm... I ran the update, and then:

[ed@homer uiwx]$ python dTextBox.py

Dabo Info Log: Wed Sep 1 12:23:23 2004: No default UI set.

(DABO_DEFAULT_UI)

Traceback (most recent call last):

File "/usr/local/lib/python2.3/site-packages/dabo/ui/__init__.py",

line 44, in loadUI

exec("from %s import *" % module, globals())

File "<string>", line 1, in ?

File

"/usr/local/lib/python2.3/site-packages/dabo/ui/uiwx/__init__.py", line

27, in ?

from dComboBox import dComboBox

File

"/usr/local/lib/python2.3/site-packages/dabo/ui/uiwx/dComboBox.py",

line 3, in ?

import dEvents

ImportError: No module named dEvents

UI ERROR: No module named dEvents

Dabo Info Log: Wed Sep 1 12:23:23 2004: dEvent Fired:

?.dTextBox.GotFocus

Then if I move the mouse anywhere over the control, I get:

Traceback (most recent call last):

File

"/usr/local/lib/python2.3/site-packages/dabo/ui/uiwx/dPemMixin.py",

line 173, in _onWxMouse

self.raiseEvent(dEvents.MouseEnter, event)

File

"/usr/local/lib/python2.3/site-packages/dabo/ui/uiwx/dPemMixin.py",

line 295, in raiseEvent

dPemMixin.doDefault(eventClass, nativeEvent,

callAfterFunc=wx.CallAfter,

File

"/usr/local/lib/python2.3/site-packages/dabo/common/doDefaultMixin.py",

line 21, in doDefau

return eval('super(cls, self).%s(*args, **kwargs)' % methodName)

File "<string>", line 0, in ?

File

"/usr/local/lib/python2.3/site-packages/dabo/common/eventMixin.py",

line 36, in raiseEvent

event = eventClass(self, uiEvent, *args, **kwargs)

File "/usr/local/lib/python2.3/site-packages/dabo/dEvents.py", line

24, in __init__

self._insertEventData()

File "/usr/local/lib/python2.3/site-packages/dabo/dEvents.py", line

49, in _insertEventData

self._extraLogInfo = "X:%s Y:%s" %

(self.EventData["mousePosition"][0],

KeyError: 'mousePosition'

___/

/

__/

/

____/

Ed Leafe

http://leafe.com/

http://dabodev.com/

©2004 Ed Leafe