Hi All, I'm trying to use a dSlider in my app, but I need to change the style to wx.SL_LEFT|wx.SL_INVERSE. I've done most of the programming in the CD, but I'm running into a wall trying to get the style I want to get parsed correctly by Dabo, most likely out of ignorance. Here's what I've tried:
I went into the .cdxml file and added a property to the dSlider element like so: <dSlider ...snip... style="wx.SL_LEFT|wx.SL_INVERSE"></dSlider> The problem is that when this style gets used in line 25 of dSlider.py, it doesn't know what to do with the string and the int. Of course, changing the string to an int value breaks the XML form, so I've really run out of ideas. Is there already a way to do this? Would it be permissible to just change line 25 of dSlider.py to read: kwargs["style"] = int(style) | wx.SL_AUTOTICKS This way, at least I can pass the integer equivalent instead of the named constants and still get the job done. I'm painfully aware that I don't know all the Dabo internals, so I hope my question/proposal isn't heresy. Thanks, Mike M. --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ 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]
