oh thanks. but i hoped to find the id's by using FindFoolForPosition with Pixel-Coords?
but it dont works....
but maybe its possible too - and a error is inside my code ?
sz0 = tb.GetSize()
print "tb.GetSize", sz0.x, sz0.y
x0, y0 = tb.ClientToScreenXY(0, 0 )
print "tb.ClientToScreenXY", x0, y0
sz = tb.GetToolSize() # size of ONE TOOLBUTTON
print "tb.GetToolSize", sz.x, sz.y
(x, y) = ( x0+5, y0 + sz.y + 12)
while x < x0 + sz0.GetWidth():
print "X:", x, "Y:", y
wxtbt = tb.FindToolForPosition( x, y )
print "wxtbt", wxtbt
#print "\nID ", wxtbt.GetId()
x = x + sz.x
-----Ursprungliche Nachricht-----
···
Von: Robin Dunn [SMTP:robin@alldunn.com]
Gesendet am: Montag, 6. August 2001 18:09
An: wxpython-users@lists.wxwindows.org
Betreff: Re: [wxPython] wxToolbar - obtaining IDs
is it possible to get all current displayed toolbar-button ids.
You can derive a class from wxToolBar and override AddSimpleTool and track
the IDs youself.
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users