It is not a bug, I looked into wxwidghet source code and searched google and found this:
http://lists.wxwidgets.org/archive/wx-dev/msg28331.html
So you cant have wxTAB_TRAVERSAL on ScrolledWindows anymore.
I guess that if you use wxpython and set non-existing style
nothing happens.
I probably got a warning due to my using XRC. IMO the behaviour should be the same in both cases.
Best regards,
Toni
···
-----Original Message-----
From: Toni Brkic [mailto:toni.brkic@switchcore.com]
Sent: Wednesday, August 18, 2004 5:43 PM
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] Bug??? wxScrolledWindow and wxTAB_TRAVERSAL
doesnt work with XRCHi,
I think I found a bug with XRC and wxScrolledWindow. It seems
that it thinks that you cant use wxTAB_TRAVERSAL style on those
windows if loading from a XRC file.Before reporting it as bug I just want to check if I made something
obviously wrong. The below script is a testcase. Run it and you will
get an error message like below:'Unknown style flag wxTAB_TRAVERSAL'
I also think that XRC and statusbar on frames doesnt work. But I have
to create a testcase for that aswell.Is using XRC not recommended?
Best regards.
Toni
---------------------test_xrc.py------------------------------
---------
#!/usr/bin/env python#import wxselect
#wxselect.wxVersionFinder.setpath(version="2.5")resourceText = r'''<?xml version="1.0" encoding="ANSI_X3.4-1968"?>
<!-- generated by wxGlade 0.3.4 on Wed Aug 18 16:55:00 2004 --><resource version="2.3.0.1">
<object class="wxFrame" name="frame_1">
<style>wxDEFAULT_FRAME_STYLE</style>
<title>frame_1</title>
<object class="wxPanel">
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<option>1</option>
<flag>wxEXPAND</flag>
<object class="wxScrolledWindow" name="panel_1">
<scrollable>1</scrollable>
<style>wxTAB_TRAVERSAL</style>
</object>
</object>
</object>
</object>
</object>
</resource>
'''import wx
import wx.xrc as xrcclass MyApp(wx.App):
def OnInit(self):
self.res = xrc.EmptyXmlResource()
self.res.LoadFromString(resourceText)
self.InitFrame()
return Truedef InitFrame(self):
self.frame = self.res.LoadFrame(None, "frame_1")
self.frame.Show(True)
self.SetTopWindow(self.frame)def main():
app = MyApp()
app.MainLoop()if __name__ == '__main__':
main()--------------------------------------------------------------
------------------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org