Added about info in program¿s help menu

This commit is contained in:
Manuel Cortez 2018-02-25 07:15:30 -06:00
parent eebd86a987
commit eab1627925
3 changed files with 6 additions and 4 deletions

View File

@ -4,7 +4,7 @@ version = "0.1"
author = "Manuel Cortéz"
authorEmail = "manuel@manuelcortez.net"
copyright = "Copyright (C) 2018, Manuel Cortez"
description = name+" Is an application that will allow you to download music."
description = name+" Is an application that will allow you to download music from popular sites such as youtube, zaycev.net."
url = "https://manuelcortez.net/music_dl"
#update_url = "https://raw.githubusercontent.com/manuelcortez/socializer/master/update-files/socializer.json"
# The short name will be used for detecting translation files. See languageHandler for more details.

View File

@ -59,6 +59,7 @@ class Controller(object):
widgetUtils.connect_event(self.window, widgetUtils.MENU, self.on_volume_up, menuitem=self.window.player_volume_up)
widgetUtils.connect_event(self.window, widgetUtils.MENU, self.on_mute, menuitem=self.window.player_mute)
widgetUtils.connect_event(self.window, widgetUtils.MENU, self.on_shuffle, menuitem=self.window.player_shuffle)
widgetUtils.connect_event(self.window, widgetUtils.MENU, self.window.about_dialog, menuitem=self.window.about)
widgetUtils.connect_event(self.window.previous, widgetUtils.BUTTON_PRESSED, self.on_previous)
widgetUtils.connect_event(self.window.play, widgetUtils.BUTTON_PRESSED, self.on_play_pause)
widgetUtils.connect_event(self.window.stop, widgetUtils.BUTTON_PRESSED, self.on_stop)

View File

@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import wx
import wx.adv
import application
import widgetUtils
@ -74,15 +75,15 @@ class mainWindow(wx.Frame):
self.sb.SetStatusText(status)
def about_dialog(self, *args, **kwargs):
info = wx.AboutDialogInfo()
info = wx.adv.AboutDialogInfo()
info.SetName(application.name)
info.SetVersion(application.version)
info.SetDescription(application.description)
info.SetCopyright(application.copyright)
info.SetTranslators(application.translators)
# info.SetTranslators(application.translators)
# info.SetLicence(application.licence)
info.AddDeveloper(application.author)
wx.AboutBox(info)
wx.adv.AboutBox(info)
def get_text(self):
t = self.text.GetValue()