Użytkownik Paul McNett napisał:
> If you could give us a stripped-down Dabo version that shows the
> problem, along with a wx version which doesn't, perhaps we could find
> the difference and fix it.
>
It is quite simple.
Here is wx version, well working code:
<code>
import wx
app = wx.PySimpleApp()
frame = wx.Frame(None, wx.ID_ANY, "Hello World")
frame.Maximize()
frame.Show(True)
sb = wx.StatusBar(frame)
frame.SetStatusBar(sb)
sb.SetStatusText("Foo...")
app.MainLoop()
</code>
And Dabo version:
(in first dry run you must maximize form and close application, then open
it in debugger and step through code)
<code>
import dabo
dabo.ui.loadUI("wx")
app = dabo.dApp()
# after next line maximized main form shows garbaged at bottom and right
side
app.setup()
# then status bar is displayed at left center of form
app.MainForm.setStatusText("Foo...")
# and now everything becomes ok
app.start()
</code>
--
Regards
Jacek Kałucki
_______________________________________________
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]