Began implementation of reply button

This commit is contained in:
Anna 2010-04-09 01:08:32 -04:00
parent 8021d05ade
commit 23573bc648

View File

@ -85,7 +85,8 @@ class MyTwitter():
def update_status(self):
text = self.update_entry.get_text()
self.update_entry.set_text("")
self.api.PostUpdate(text)
self.api.PostUpdate(text, in_reply_to_status_id=self.reply_id)
self.reply_id = None
self.update_window()
@ -111,12 +112,16 @@ class MyTwitter():
self.update_window()
# fixme: these are stubs
def on_reply(self, reply):
pass
# fixme: this doesn't work; we're passing in the Button widget and not the
# TweetBox widget... certain I need to do something convoluted to fix
# this
def on_reply(self, widget):
self.update_entry.set_text('@' + widget.screen_name + ' ')
self.reply_id = widget.id
def on_retweet(self, retweet):
# fixme: need to implement the retweet API in python-twitter to continue
def on_retweet(self, widget):
pass
### end class MyTwitter