mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-23 03:38:08 -06:00
Fixed focus when search dialog opens. Fixes #364
This commit is contained in:
parent
eca0c0dbbd
commit
e2e8b84e6a
@ -1,6 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import absolute_import
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
import widgetUtils
|
import widgetUtils
|
||||||
from . import baseDialog
|
from . import baseDialog
|
||||||
import wx
|
import wx
|
||||||
@ -14,6 +12,7 @@ class searchDialog(baseDialog.BaseWXDialog):
|
|||||||
self.SetTitle(_(u"Search on Twitter"))
|
self.SetTitle(_(u"Search on Twitter"))
|
||||||
label = wx.StaticText(panel, -1, _(u"&Search"))
|
label = wx.StaticText(panel, -1, _(u"&Search"))
|
||||||
self.term = wx.TextCtrl(panel, -1, value)
|
self.term = wx.TextCtrl(panel, -1, value)
|
||||||
|
self.term.SetFocus()
|
||||||
dc = wx.WindowDC(self.term)
|
dc = wx.WindowDC(self.term)
|
||||||
dc.SetFont(self.term.GetFont())
|
dc.SetFont(self.term.GetFont())
|
||||||
self.term.SetSize(dc.GetTextExtent("0"*40))
|
self.term.SetSize(dc.GetTextExtent("0"*40))
|
||||||
|
Loading…
Reference in New Issue
Block a user