def infobox(): from gui.toolbox import Monitor from gui.infobox.infobox import DEFAULT_INFOBOX_WIDTH from gui.infobox.infoboxapp import init_host, set_hosted_content f = wx.Frame(None) size = (DEFAULT_INFOBOX_WIDTH, Monitor.GetFromWindow(f).ClientArea.height * .75) f.SetClientSize(size) w = wx.webview.WebView(f) init_host(w) set_hosted_content(w, MockTwitterAccount(twitter)) f.Show()
def do_set_content(): for x in xrange(100): set_hosted_content(w, account)