Open a search from the trending topics buffer is now possible

This commit is contained in:
2015-03-17 12:24:29 -06:00
parent c7d007636e
commit 89e541be95
4 changed files with 18 additions and 20 deletions

View File

@@ -3,13 +3,13 @@ import baseDialog
import wx
class searchDialog(baseDialog.BaseWXDialog):
def __init__(self):
def __init__(self, value=""):
super(searchDialog, self).__init__(None, -1)
panel = wx.Panel(self)
sizer = wx.BoxSizer(wx.VERTICAL)
self.SetTitle(_(u"Search on Twitter"))
label = wx.StaticText(panel, -1, _(u"Search"))
self.term = wx.TextCtrl(panel, -1,)
self.term = wx.TextCtrl(panel, -1, value)
dc = wx.WindowDC(self.term)
dc.SetFont(self.term.GetFont())
self.term.SetSize(dc.GetTextExtent("0"*40))