Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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))
Exemple #4
0
 def __init__(self, screen, title, width, height):
     DialogBoxModal.__init__(self, title, None, False, screen)
     self.screen = screen
     self.setText(title)
     self.dragged = False
Exemple #5
0
 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)
Exemple #6
0
 def onMouseDown(self, sender, x, y):
     #log.writebr("down %d %d" % (x, y))
     DialogBoxModal.onMouseDown(self, sender, x, y)
     self.dragged = False