Post tweets and translate is possible in the next-gen

This commit is contained in:
2014-11-12 22:37:52 -06:00
parent f54d9394b7
commit 606ab6d6fc
11 changed files with 47 additions and 507 deletions

View File

@@ -24,6 +24,9 @@ class textLimited(baseDialog.BaseWXDialog):
def get_text(self):
return self.text.GetValue()
def set_text(self, text):
return self.text.ChangeValue(text)
def onSelect(self, ev):
self.text.SelectAll()

View File

@@ -31,7 +31,7 @@ class mainFrame(wx.Frame):
# Tweet menu
tweet = wx.Menu()
compose = tweet.Append(wx.NewId(), _(u"&Tweet"))
# self.view.Bind(wx.EVT_MENU, self.compose, compose)
self.Bind(wx.EVT_MENU, self.controller.post_tweet, compose)
response = tweet.Append(wx.NewId(), _(u"Re&ply"))
# self.view.Bind(wx.EVT_MENU, self.reply, response)
retweet = tweet.Append(wx.NewId(), _(u"&Retweet"))