wx.lib.iewin:is there any event occur when a new URL is loaded?
Black
iaminlost at yahoo.cn
Thu Jan 10 21:13:32 PST 2008
# -*- coding:utf-8 -*-
import wx
import wx.lib.iewin as iewin
class MyApp(wx.App):
def OnInit(self):
self.frame = wx.Frame(None)
self.panel=wx.Panel(self.frame)
self.htmlctrl = iewin.IEHtmlWindow(self.panel,size=(304,202))
self.htmlctrl.LoadUrl("http://www.gvlr.com")
self.SetTopWindow(self.frame)
self.frame.Show()
self.Bind(wx.EVT_TEXT_URL,self.OnSizeChange,self.panel)
return True
def OnSizeChange(self,event):
wx.MessageBox('size changed','wx.lib.iewin')
app = MyApp(0)
app.MainLoop()
==============
I want to change frame size when different url has loaded
is there any way?
---------------------------------
雅虎邮箱传递新年祝福,个性贺卡送亲朋!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080111/f7a84237/attachment.htm
More information about the wx-users
mailing list