Minor improvements in dialog destroying an a few strings modified
This commit is contained in:
parent
b0b3086540
commit
f3ae5204d8
@ -194,9 +194,7 @@ class audio(postController):
|
||||
self.post = postObject
|
||||
self.dialog = postDialogs.audio()
|
||||
widgetUtils.connect_event(self.dialog.list, widgetUtils.LISTBOX_CHANGED, self.handle_changes)
|
||||
print "loading audios..."
|
||||
self.load_audios()
|
||||
print "Filling information..."
|
||||
self.fill_information(0)
|
||||
widgetUtils.connect_event(self.dialog.download, widgetUtils.BUTTON_PRESSED, self.download)
|
||||
widgetUtils.connect_event(self.dialog.play, widgetUtils.BUTTON_PRESSED, self.play)
|
||||
@ -270,6 +268,7 @@ class audio(postController):
|
||||
for i in self.post:
|
||||
s = u"{0} - {1}. {2}".format(i["title"], i["artist"], utils.seconds_to_string(i["duration"]))
|
||||
self.dialog.insert_audio(s)
|
||||
self.dialog.list.SetSelection(0)
|
||||
|
||||
def handle_changes(self, *args, **kwargs):
|
||||
p = self.dialog.get_audio()
|
||||
|
@ -66,4 +66,8 @@ class spellChecker(object):
|
||||
|
||||
def replaceAll(self, ev):
|
||||
self.checker.replace_always(self.dialog.get_selected_suggestion())
|
||||
self.check()
|
||||
self.check()
|
||||
|
||||
def clean(self):
|
||||
if hasattr(self, "dialog"):
|
||||
self.dialog.Destroy()
|
@ -79,7 +79,7 @@ def compose_new(status, session):
|
||||
for i in xrange(0, status["audio"]["count"]):
|
||||
composed_audio = compose_audio(status["audio"]["items"][i], session)
|
||||
prem += u"{0} - {1}, ".format(composed_audio[0], composed_audio[1])
|
||||
message = _(u"{0} has posted {1} audios: {2}").format(user, status["audio"]["count"], prem)
|
||||
message = _(u"{0} has added {1} audios: {2}").format(user, status["audio"]["count"], prem)
|
||||
elif status["type"] == "friend":
|
||||
msg_users = u""
|
||||
for i in status["friends"]["items"]:
|
||||
|
Loading…
Reference in New Issue
Block a user