fixed python checking code no longer valid

This commit is contained in:
Manuel Cortez 2020-07-31 10:52:53 -05:00
parent 57a23868e9
commit ad2189039e

View File

@ -1,15 +1,10 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import wx import wx
import application
class contextMenu(wx.Menu): class contextMenu(wx.Menu):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(contextMenu, self).__init__(*args, **kwargs) super(contextMenu, self).__init__(*args, **kwargs)
self.play = wx.MenuItem(self, wx.NewId(), _(u"Play/Pause")) self.play = wx.MenuItem(self, wx.NewId(), _(u"Play/Pause"))
self.download = wx.MenuItem(self, wx.NewId(), _(u"Download")) self.download = wx.MenuItem(self, wx.NewId(), _(u"Download"))
if application.python_version == 3: self.Append(self.play)
self.Append(self.play) self.Append(self.download)
self.Append(self.download)
else:
self.AppendItem(self.play)
self.AppendItem(self.download)