Eliminated dupe searches, and made Home and @user work from the View menu... I seem to have broken 'in reply to' links though
This commit is contained in:
parent
522edc30cb
commit
990b3f81d2
10
mytwitter.py
10
mytwitter.py
|
@ -156,7 +156,10 @@ class MyTwitter():
|
|||
|
||||
|
||||
def on_view_selected(self, event, name):
|
||||
full_name = 'list: ' + name
|
||||
if name == 'Home' or name == '@' + self.username:
|
||||
full_name = name
|
||||
else:
|
||||
full_name = 'list: ' + name
|
||||
|
||||
# If it already exists, don't add it, just switch to it
|
||||
for i in range(self.tweet_notebook.get_n_pages()):
|
||||
|
@ -183,6 +186,11 @@ class MyTwitter():
|
|||
|
||||
|
||||
def add_to_notebook(self, name, single_tweet=None):
|
||||
# If we already have a pane by this name, bail
|
||||
for i in range(self.tweet_notebook.get_n_pages()):
|
||||
if self.tweet_notebook.get_nth_page(i).get_list_name() == name:
|
||||
return
|
||||
|
||||
is_user = False
|
||||
following = False
|
||||
if re.match('user:', name):
|
||||
|
|
Reference in New Issue
Block a user