"""
-#from Numeric import array,Float,cos,pi,sum,minimum,maximum,Int32
-
-#from time import clock, sleep
-
import wx
-#import types
-#import os
-
import FloatCanvas, Resources
-
ID_ZOOM_IN_BUTTON = wx.NewId()
ID_ZOOM_OUT_BUTTON = wx.NewId()
ID_ZOOM_TO_FIT_BUTTON = wx.NewId()
wx.EVT_BUTTON(self, ID_ZOOM_TO_FIT_BUTTON, self.ZoomToFit)
tb.Realize()
- tb.SetSizeHints(tb.GetSize())
+ S = tb.GetSize()
+ tb.SetSizeHints(S[0],S[1])
return tb
def SetToolMode(self,event):