Minor improvements in dialog destroying an a few strings modified
This commit is contained in:
		| @@ -194,9 +194,7 @@ class audio(postController): | |||||||
| 		self.post = postObject | 		self.post = postObject | ||||||
| 		self.dialog = postDialogs.audio() | 		self.dialog = postDialogs.audio() | ||||||
| 		widgetUtils.connect_event(self.dialog.list, widgetUtils.LISTBOX_CHANGED, self.handle_changes) | 		widgetUtils.connect_event(self.dialog.list, widgetUtils.LISTBOX_CHANGED, self.handle_changes) | ||||||
| 		print "loading audios..." |  | ||||||
| 		self.load_audios() | 		self.load_audios() | ||||||
| 		print "Filling information..." |  | ||||||
| 		self.fill_information(0) | 		self.fill_information(0) | ||||||
| 		widgetUtils.connect_event(self.dialog.download, widgetUtils.BUTTON_PRESSED, self.download) | 		widgetUtils.connect_event(self.dialog.download, widgetUtils.BUTTON_PRESSED, self.download) | ||||||
| 		widgetUtils.connect_event(self.dialog.play, widgetUtils.BUTTON_PRESSED, self.play) | 		widgetUtils.connect_event(self.dialog.play, widgetUtils.BUTTON_PRESSED, self.play) | ||||||
| @@ -270,6 +268,7 @@ class audio(postController): | |||||||
| 		for i in self.post: | 		for i in self.post: | ||||||
| 			s = u"{0} - {1}. {2}".format(i["title"], i["artist"], utils.seconds_to_string(i["duration"])) | 			s = u"{0} - {1}. {2}".format(i["title"], i["artist"], utils.seconds_to_string(i["duration"])) | ||||||
| 			self.dialog.insert_audio(s) | 			self.dialog.insert_audio(s) | ||||||
|  | 		self.dialog.list.SetSelection(0) | ||||||
|  |  | ||||||
| 	def handle_changes(self, *args, **kwargs): | 	def handle_changes(self, *args, **kwargs): | ||||||
| 		p = self.dialog.get_audio() | 		p = self.dialog.get_audio() | ||||||
|   | |||||||
| @@ -67,3 +67,7 @@ class spellChecker(object): | |||||||
| 	def replaceAll(self, ev): | 	def replaceAll(self, ev): | ||||||
| 		self.checker.replace_always(self.dialog.get_selected_suggestion()) | 		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"]): | 			for i in xrange(0, status["audio"]["count"]): | ||||||
| 				composed_audio = compose_audio(status["audio"]["items"][i], session) | 				composed_audio = compose_audio(status["audio"]["items"][i], session) | ||||||
| 				prem += u"{0} - {1}, ".format(composed_audio[0], composed_audio[1]) | 				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": | 	elif status["type"] == "friend": | ||||||
| 		msg_users = u"" | 		msg_users = u"" | ||||||
| 		for i in status["friends"]["items"]: | 		for i in status["friends"]["items"]: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user