On Jul 7, 2012, at 2:23 PM, Dave Kelly wrote:

> I have noticed what I think might be bugs.  First, on Windows, I cannot seem
> to add the button as per the PyCon tutorial.  I have a screen shot
> http://theprioryinn.co.uk/specials/dabo_windows.jpg which shows the commands
> I put in but the button did not appear.

        Try it again, but this time store a reference to the button:

btn = dabo.ui.dButton(self, ...

        Then you can query the button to see why it isn't visible. Try things 
like:

print btn.Size, btn.Position

> On Linux, I get further but I can't use the method getMouseObject.  I have a
> screen shot http://theprioryinn.co.uk/specials/dabo_linux.png which shows
> that after the getMouseObject() changing properties of the button does not
> work.

        The wx feature that is the basis for getMouseObject() gets the 
bottom-most object in the z-order; in other words, if there is a window behind 
the button, it will grab a reference to that window, not the button. The output 
shows that 'btn' is the code editor, not the button. By any chance is the code 
editing window behind the button's form?


-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to