[wxPython-users] 2.6=>2.8 (windows) - wxHorror :/

Robin Dunn robin at alldunn.com
Thu Oct 11 12:00:16 PDT 2007


Wojtek P wrote:
> Hello!
> 
> I use wxPython in my job and i like it very much. Our application is 
> very complicated. A when i switch from version 2.6 to 2.8 i have some 
> problems :(
> 
> 1) navigation keys from numpad - now only EVT_CHAR get old keycodes 
> (WXK_UP etc), in EVT_KEY_DOWN/UP i get only new WXK_NUMPAD_xxxx

I think the current behavior is correct.  The KEY_UP/DOWN events are 
supposed to give you a unique (raw) value for the key itself, not 
necessarily the same as the (cooked) value the key is supposed to 
represent.  In other words in this case it's a numpad key so you'll get 
the WXK_NUMPAD_UP code for the key events, but the key is intended to be 
used for either an up arrow or an 8, so you get WXK_UP or 8 for the char 
event.


> 
> 2) some troubles with julian date (i use only whole days without time) - 
> in 2.6 i got for example GetJDN()==2.5, and now this same date==2.485  - 
> and finally i get wrong result date - i use now ResetTime() for better 
> way (i get xxxx.xx.xx 01:00:00, with 2.6 i got 00:00:00 time)

Can you provide some sample code that shows this problem?


> 
> 3) very strange error - 
> http://www.nabble.com/Strange-behaviour-with-wxBitmapButton-in-2.8.0-RC1-t2767193.html 
> <http://www.nabble.com/Strange-behaviour-with-wxBitmapButton-in-2.8.0-RC1-t2767193.html>. 
> When i run app under XP without skin all is ok, but wiht themes every 
> bitmapbutton have border - i found this page and use style=wx.NO_BORDER. 
> But in help i don't found any information about this style for 
> wxBitmapButton. Under ver. 2.6 all ok

Because it's not a wxBitmapButton specific style, it is a general border 
style that can be used with any widget type.  Each widget however is 
able to use or ignore border styles as they see fit.

> 
> 4) I wxPython demo is custom tree demonstration but label editing is not 
> possible - this control need need_chars flag - wihout this enter key 
> don't work... Double click on demo navigation tree throw some error on 
> my console

There was a workaround for this shown in a message yesterday about 
navigation key events.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list