- Remove zoom button when we do not have PIL and Linux

This commit is contained in:
ccremers 2006-08-10 14:58:08 +00:00
parent 74626bd846
commit 51fbffcacd

View File

@ -142,8 +142,10 @@ class AttackWindow(wx.Frame):
''' Create "interior" window components. In this case it is the ''' Create "interior" window components. In this case it is the
attack picture. ''' attack picture. '''
# Make zoom buttons
sizer = wx.BoxSizer(wx.VERTICAL) sizer = wx.BoxSizer(wx.VERTICAL)
# Make zoom buttons
if Preference.usePIL():
buttons = wx.BoxSizer(wx.HORIZONTAL) buttons = wx.BoxSizer(wx.HORIZONTAL)
bt = wx.Button(self,wx.ID_ZOOM_100) bt = wx.Button(self,wx.ID_ZOOM_100)
buttons.Add(bt,0) buttons.Add(bt,0)