Skip to content

Commit

Permalink
Fix Linux issue when opening device apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Abner-Barros committed Feb 11, 2016
1 parent 3cace3e commit 91d11a4
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions mainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,26 +308,37 @@ def mainMenu(self):
wx.EVT_LEAVE_WINDOW(singleChanBtn, self.OnLeave)
break
except ValueError:
print "i did not work"

'''
if MacOsName or WinOsName == GetOsName:
wx.EVT_ENTER_WINDOW(singleChanBtn, self.OnEnter)
wx.EVT_LEAVE_WINDOW(singleChanBtn, self.OnLeave)
'''
print "error changing button cursor for linux"

singleChanBtn.Bind(wx.EVT_BUTTON, self.openSingleChan)

"""Two Channel Button"""
bmp2 = wx.Bitmap("./ICO/two_channel_button.png", wx.BITMAP_TYPE_ANY)
twoChanBtn = wx.BitmapButton(panel, id=wx.ID_ANY, bitmap=bmp2,size=(bmp2.GetWidth(), bmp2.GetHeight()))
wx.EVT_ENTER_WINDOW(twoChanBtn, self.OnEnter)
wx.EVT_LEAVE_WINDOW(twoChanBtn, self.OnLeave)
while (MacOsName or WinOsName) == GetOsName:
try:
wx.EVT_ENTER_WINDOW(twoChanBtn, self.OnEnter)
wx.EVT_LEAVE_WINDOW(twoChanBtn, self.OnLeave)
break
except ValueError:
print "error changing button cursor for linux"

#twoChanBtn.Bind(wx.EVT_BUTTON, self.openTwoChan)

"""Teamable Button"""
bmp3 = wx.Bitmap("./ICO/teamable_button.png", wx.BITMAP_TYPE_ANY)
teamBtn = wx.BitmapButton(panel, id=wx.ID_ANY, bitmap=bmp3,size=(bmp3.GetWidth(), bmp3.GetHeight()))
wx.EVT_ENTER_WINDOW(teamBtn, self.OnEnter)
wx.EVT_LEAVE_WINDOW(teamBtn, self.OnLeave)
while (MacOsName or WinOsName) == GetOsName:
try:
wx.EVT_ENTER_WINDOW(teamBtn, self.OnEnter)
wx.EVT_LEAVE_WINDOW(teamBtn, self.OnLeave)
break
except ValueError:
print "error changing button cursor for linux"

#twoChanBtn.Bind(wx.EVT_BUTTON, self.openTeamChan)

"""HELP LINK"""
str_help = wx.StaticText(panel, -1, 'Help',style=wx.ALIGN_CENTRE)
Expand Down

0 comments on commit 91d11a4

Please sign in to comment.