def __init__(self, parent=None): Canvas.__init__(self, parent) PopupBase.__init__(self) CaptureObject.__init__(self) self.visible = False self.minSize = 100, 50 # minimal dialog size # margin self.__lm = 0 # left margin self.__tm = 0 # top margin self.__rm = 0 # right margin self.__bm = 0 # bottom margin # border ''' self.border = '3,3,3,3' self.bind('Capture Begin', self.onSizeStart) self.bind('Capture Offset', self.onSizeMove) self.bind('Mouse Enter', self.onChangeCursor, True) self.bind('Mouse Leave', self.onChangeCursor, False) ''' # sizer in right bottom self.sizable = False self.changeEvent('sizable', self.onSizableChange, postevent=False) # command routing self.cmdPath = None
def __init__(self, parent = None): Canvas.__init__(self, parent) PopupBase.__init__(self) CaptureObject.__init__(self) self.visible = False self.minSize = 100, 50 # minimal dialog size # margin self.__lm = 0 # left margin self.__tm = 0 # top margin self.__rm = 0 # right margin self.__bm = 0 # bottom margin # border ''' self.border = '3,3,3,3' self.bind('Capture Begin', self.onSizeStart) self.bind('Capture Offset', self.onSizeMove) self.bind('Mouse Enter', self.onChangeCursor, True) self.bind('Mouse Leave', self.onChangeCursor, False) ''' # sizer in right bottom self.sizable = False self.changeEvent('sizable', self.onSizableChange, postevent = False) # command routing self.cmdPath = None
def __init__(self, parent = None): Canvas.__init__(self, parent) CaptureObject.__init__(self) self.useGlobalCapture = True self.__moveTarget = weakref.ref(self.parent) self.caption = '' self.bind('Capture Begin', self.onBeginMove, postevent = False) self.bind('Capture Offset', self.onMove, postevent = False)
def __init__(self, parent=None): Canvas.__init__(self, parent) CaptureObject.__init__(self) self.useGlobalCapture = True self.__moveTarget = weakref.ref(self.parent) self.caption = '' self.bind('Capture Begin', self.onBeginMove, postevent=False) self.bind('Capture Offset', self.onMove, postevent=False)
def __init__(self, parent = None): Canvas.__init__(self, parent) self.enableFullscreen = True self.bind('Mouse Down', self.onMoveWindow) self.bind('Dbl Click', self.onDblClick)
def __init__(self, parent=None): Canvas.__init__(self, parent) self.enableFullscreen = True self.bind('Mouse Down', self.onMoveWindow) self.bind('Dbl Click', self.onDblClick)