From 67d2ccabe394b657590d543e7a5be52e12ecd64c Mon Sep 17 00:00:00 2001 From: Anna Date: Sun, 11 Apr 2010 00:45:41 -0400 Subject: [PATCH] The List of lists is now sorted nicely --- mytwitter.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mytwitter.py b/mytwitter.py index 65101f2..9d7d4ec 100755 --- a/mytwitter.py +++ b/mytwitter.py @@ -61,8 +61,13 @@ class MyTwitter(): # Fill the ComboBox with entries self.list_select.append_text('@' + self.username) lists = self.api.GetUserLists() + list_names = [] + # two passes to sort this nicely for l in lists['lists']: - self.list_select.append_text(l.name) + list_names.append(l.name) + list_names.sort() + for l in list_names: + self.list_select.append_text(l) # Timer to update periodically self.update_window()