Skip to content

Commit

Permalink
areglado el no poder cerrar mostrarchat
Browse files Browse the repository at this point in the history
  • Loading branch information
metalalchemist committed Oct 13, 2023
1 parent 346fd8a commit 34f4ab5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions VeTube.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def historialItemsMenu(self, event):
menu.Append(5, _("&Traducir"))
menu.Bind(wx.EVT_MENU, self.traducirMenu, id=5)
menu.Append(0, _("&Mostrar el mensaje en un cuadro de texto."))
menu.Bind(wx.EVT_MENU, self.mostrarMensaje, id=0)
menu.Bind(wx.EVT_MENU, lambda event: mostrarchat.showComment(self,self.list_box_1.GetString(self.list_box_1.GetSelection())).ShowModal(), id=0)
menu.Append(6, _("&Copiar mensaje al portapapeles"))
menu.Bind(wx.EVT_MENU, self.copiarMensaje,id=6)
menu.Append(11, _("&Listado de Urls."))
Expand Down Expand Up @@ -844,7 +844,7 @@ def cerrarVentana(self, event):
def retornarMensaje(self):
if self.list_box_1.GetCount()>0 and lista[yt][0]=='General': return self.list_box_1.GetString(self.list_box_1.GetSelection())
if lista[yt][0]!='General' and len(lista[yt])>0: return lista[yt][pos[yt]]
def mostrarMensaje(self,event=None): mostrarchat.showComment(self,self.retornarMensaje)
def mostrarMensaje(self): mostrarchat.showComment(self,self.retornarMensaje()).ShowModal()
def reproducirMsg(self):
if lista[yt][0]=='General':
if self.list_box_1.GetSelection()==0 or self.list_box_1.GetSelection()==self.list_box_1.GetCount()-1: playsound("sounds/orilla.mp3",False)
Expand Down
4 changes: 2 additions & 2 deletions mostrarchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ def __init__(self, parent,text):
self.choice_idiomas.SetStringSelection(self.translator.LANGUAGES[languageHandler.curLang[:2]])
self.choice_idiomas.Bind(wx.EVT_CHOICE, self.cambiarTraducir)
self.label_mensaje_texto = wx.StaticText(self, wx.ID_ANY, label=_("mensaje: "))
self.text_message = wx.TextCtrl(self, wx.ID_ANY, text(), style=wx.TE_CENTRE | wx.TE_PROCESS_ENTER)
self.text_message = wx.TextCtrl(self, wx.ID_ANY, text, style=wx.TE_CENTRE | wx.TE_PROCESS_ENTER)
self.text_message.SetFocus()
self.text_message.Bind(wx.EVT_TEXT_ENTER, lambda event: self.Destroy)
self.text_message.Bind(wx.EVT_TEXT_ENTER, lambda event: self.Destroy())
self.traducir = wx.Button(self, wx.ID_ANY, label=_("&Traducir al idioma del programa"))
self.traducir.Bind(wx.EVT_BUTTON, self.traducirMensaje)
cancelar = wx.Button(self, wx.ID_CANCEL, "&Cerrar")
Expand Down
2 changes: 1 addition & 1 deletion update/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
logger = logging.getLogger("updater")
Lector=auto.Auto()
def do_update(endpoint='https://raw.githubusercontent.com/metalalchemist/VeTube/master/updater.json'):
try: result = update.perform_update(endpoint=endpoint, current_version="2.71", app_name="VeTube", update_available_callback=available_update_dialog, progress_callback=progress_callback, update_complete_callback=update_finished)
try: result = update.perform_update(endpoint=endpoint, current_version="2.8", app_name="VeTube", update_available_callback=available_update_dialog, progress_callback=progress_callback, update_complete_callback=update_finished)
except: Lector.speak(_("Hubo un error al actualizar VeTube."))
return result

0 comments on commit 34f4ab5

Please sign in to comment.