def __init__(self, identifier, instructions): DialogBoxModal.__init__(self, identifier, autoHide=False) self.setWidth('%dpx' % POPUP_WIDTH) self.setHeight('%dpx' % POPUP_HEIGHT) self.scrollpanel = ScrollPanel( instructions, Width='100%', Height='%dpx' % (POPUP_HEIGHT - 30,)) self.setWidget(self.scrollpanel)
def onMouseMove(self, sender, x, y): #log.writebr("move %d %d" % (x, y)) if self.dragStartX != x or self.dragStartY != y: if not self.dragged: self.screen.raise_app(self) self.dragged = True DialogBoxModal.onMouseMove(self, sender, x, y)
def __init__(self, identifier, query, nUsers, tabName, preparePanel, topPanel): DialogBoxModal.__init__(self, identifier, autoHide=True) self.setWidth('%dpx' % POPUP_WIDTH) self.setHeight('%dpx' % POPUP_HEIGHT) self.setWidget( TweetEditor(query, nUsers, tabName, self, preparePanel, topPanel))
def __init__(self, screen, title, width, height): DialogBoxModal.__init__(self, title, None, False, screen) self.screen = screen self.setText(title) self.dragged = False
def onMouseUp(self, sender, x, y): #log.writebr("up %d %d" % (x, y)) DialogBoxModal.onMouseUp(self, sender, x, y) if not self.dragged: self.screen.raise_or_lower(self)
def onMouseDown(self, sender, x, y): #log.writebr("down %d %d" % (x, y)) DialogBoxModal.onMouseDown(self, sender, x, y) self.dragged = False