The List of lists is now sorted nicely
This commit is contained in:
parent
1c92c34dd9
commit
67d2ccabe3
|
@ -61,8 +61,13 @@ class MyTwitter():
|
||||||
# Fill the ComboBox with entries
|
# Fill the ComboBox with entries
|
||||||
self.list_select.append_text('@' + self.username)
|
self.list_select.append_text('@' + self.username)
|
||||||
lists = self.api.GetUserLists()
|
lists = self.api.GetUserLists()
|
||||||
|
list_names = []
|
||||||
|
# two passes to sort this nicely
|
||||||
for l in lists['lists']:
|
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
|
# Timer to update periodically
|
||||||
self.update_window()
|
self.update_window()
|
||||||
|
|
Reference in New Issue
Block a user