From c7743fccb92d95b93287caa30c2daf53ef4b63ea Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 2 Sep 2018 07:57:21 -0500 Subject: [PATCH] Updated GUI regarding WX 4.0.3 --- src/wxUI/mainWindow.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/wxUI/mainWindow.py b/src/wxUI/mainWindow.py index 1ace6ab..d32a359 100644 --- a/src/wxUI/mainWindow.py +++ b/src/wxUI/mainWindow.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- import wx +import wx.adv import application class mainWindow(wx.Frame): @@ -10,12 +11,12 @@ class mainWindow(wx.Frame): # self.audio_album = create.Append(wx.NewId(), _(u"Audio album")) # self.audio_album.Enable(False) self.video_album = create.Append(wx.NewId(), _(u"Video album")) - app_.AppendMenu(wx.NewId(), _(u"Create"), create) + app_.Append(wx.NewId(), _(u"Create"), create) delete = wx.Menu() # self.delete_audio_album = delete.Append(wx.NewId(), _(u"Audio album")) # self.delete_audio_album.Enable(False) self.delete_video_album = delete.Append(wx.NewId(), _(u"Video album")) - app_.AppendMenu(wx.NewId(), _(u"Delete"), delete) + app_.Append(wx.NewId(), _(u"Delete"), delete) self.settings_dialog = app_.Append(wx.NewId(), _(u"Preferences")) buffer = wx.Menu() search = wx.Menu() @@ -23,7 +24,7 @@ class mainWindow(wx.Frame): # self.search_audios.Enable(False) self.search_videos = search.Append(wx.NewId(), _(u"Video")) self.timeline = buffer.Append(wx.NewId(), _(u"&New timeline")) - buffer.AppendMenu(wx.NewId(), _(u"Search"), search) + buffer.Append(wx.NewId(), _(u"Search"), search) self.update_buffer = buffer.Append(wx.NewId(), _(u"Update current buffer")) self.load_previous_items = buffer.Append(wx.NewId(), _(u"Load previous items")) self.remove_buffer_ = buffer.Append(wx.NewId(), _(u"&Remove buffer")) @@ -114,7 +115,7 @@ class mainWindow(wx.Frame): self.tb.AdvanceSelection(forward) 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) @@ -122,7 +123,7 @@ class mainWindow(wx.Frame): info.SetTranslators(application.translators) # info.SetLicence(application.licence) info.AddDeveloper(application.author) - wx.AboutBox(info) + wx.adv.AboutBox(info) def remove_buffer(self, pos): self.tb.DeletePage(pos) \ No newline at end of file