Exemplo n.º 1
0
 def __init__(self):
     ScrolledWindow.__init__(self)
     MDSplusWidget.__init__(self)
     tv = TextView()
     tv.set_wrap_mode(WRAP_WORD)
     self.buffer = tv.get_buffer()
     self.add(tv)
Exemplo n.º 2
0
 def __init__(self):
     ScrolledWindow.__init__(self)
     MDSplusWidget.__init__(self)
     tv = TextView()
     tv.set_wrap_mode(WRAP_WORD)
     self.buffer = tv.get_buffer()
     self.add(tv)
Exemplo n.º 3
0
 def __init__(self, conn):
     ScrolledWindow.__init__(self)
     self.conn = conn
     self.editor = TemplateEditor()
     self.menu = SimpleMenu()
     self.editor.connect('populate-popup', self.populate_menu, self.menu)
     self.add_with_viewport(self.editor)
     self.show()
Exemplo n.º 4
0
 def __init__(self, conn):
     ScrolledWindow.__init__(self)
     self.conn = conn
     self.editor = TemplateEditor()
     self.menu = SimpleMenu()
     self.editor.connect('populate-popup', self.populate_menu, self.menu)
     self.add_with_viewport(self.editor)
     self.show()
Exemplo n.º 5
0
 def __init__(self, data, name='RecordBox'):
     ScrolledWindow.__init__(self)
     self.set_name(name)
     self.vbox = VBox()
     self.add_with_viewport(self.vbox)
     HasRecordBox.__init__(self, self.vbox, data, name=name)
     self.vbox.show()
     self.show()
     self.vbox.set_events(BUTTON_PRESS_MASK)
Exemplo n.º 6
0
    def __init__(self):

        ScrolledWindow.__init__(self)

        self.set_policy(POLICY_NEVER, POLICY_ALWAYS)

        self.box = VBox()

        self.add_with_viewport(self.box)
Exemplo n.º 7
0
 def __init__(self, data, name='RecordBox'):
     ScrolledWindow.__init__(self)
     self.set_name(name)
     self.vbox = VBox()
     self.add_with_viewport(self.vbox)
     HasRecordBox.__init__(self, self.vbox, data, name=name)
     self.vbox.show()
     self.show()
     self.vbox.set_events(BUTTON_PRESS_MASK)
Exemplo n.º 8
0
 def __init__(self):
     
     ScrolledWindow.__init__(self)
     
     self.set_policy(POLICY_NEVER, POLICY_ALWAYS)
     
     self.box = VBox()
     
     self.add_with_viewport(self.box)
Exemplo n.º 9
0
 def __init__(self, text, font=None, name='TextScroll'):
     ScrolledWindow.__init__(self)
     self.set_name(name)
     self.tview = TextView()
     self.tview.set_name(name)
     self.tbuffer = self.tview.get_buffer()
     self.add(self.tview)
     self.tview.set_editable(0)
     self.tview.set_wrap_mode(WRAP_WORD)
     self.tbuffer.set_text(text)
     self.tview.show()
     self.show()
Exemplo n.º 10
0
 def __init__(self, text, font=None, name='TextScroll'):
     ScrolledWindow.__init__(self)
     self.set_name(name)
     self.tview = TextView()
     self.tview.set_name(name)
     self.tbuffer = self.tview.get_buffer()
     self.add(self.tview)
     self.tview.set_editable(0)
     self.tview.set_wrap_mode(WRAP_WORD)
     self.tbuffer.set_text(text)
     self.tview.show()
     self.show()
Exemplo n.º 11
0
 def __init__(self):
     ScrolledWindow.__init__(self)
     MDSplusWidget.__init__(self)
     self.numChannels = 4
     self.nodesPerChannel = 3
     self.dataNidOffset = 1
     self.startIdxNidOffset = 2
     self.endIdxNidOffset = 3
     self.incNidOffset = -1
     self.table = Table(homogeneous=False)
     self.table.set_row_spacings(0)
     self.add_with_viewport(self.table)
     self.set_policy(POLICY_NEVER, POLICY_ALWAYS)
     adj = self.get_vadjustment()
     if adj is not None:
         adj.connect("changed", self.adj_changed)
Exemplo n.º 12
0
 def __init__(self):
     ScrolledWindow.__init__(self)
     MDSplusWidget.__init__(self)
     self.numChannels=4
     self.nodesPerChannel=3
     self.dataNidOffset=1
     self.startIdxNidOffset=2
     self.endIdxNidOffset=3
     self.incNidOffset=-1
     self.table=Table(homogeneous=False)
     self.table.set_row_spacings(0)
     self.add_with_viewport(self.table)
     self.set_policy(POLICY_NEVER,POLICY_ALWAYS)
     adj=self.get_vadjustment()
     if adj is not None:
         adj.connect("changed",self.adj_changed)
Exemplo n.º 13
0
    def __init__(self):
        ScrolledWindow.__init__(self)

        self.set_policy(POLICY_ALWAYS, POLICY_ALWAYS)

        self.table = Table(3, 3)
        self.hRuler = HRuler()
        self.vRuler = VRuler()
        self.canvas = Canvas()

        self.canvas.connect('size-allocate', self.area_allocate, None)
        self.canvas.connect('motion-notify-event', self.area_motion, None)

        self.table.attach(self.hRuler, 1, 2, 0, 1, SHRINK | FILL,
                          SHRINK | FILL)
        self.table.attach(self.vRuler, 0, 1, 1, 2, SHRINK | FILL,
                          SHRINK | FILL)
        self.table.attach(self.canvas, 1, 2, 1, 2)

        self.add_with_viewport(self.table)
Exemplo n.º 14
0
 def __init__(self, all_fields, select_fun, name='ScrolledFieldBox'):
     ScrolledWindow.__init__(self)
     self.set_name(name)
     self.vbox = VBox()
     self.vbox.show()
     self.add_with_viewport(self.vbox)
Exemplo n.º 15
0
 def __init__(self, all_fields, select_fun, name='ScrolledFieldBox'):
     ScrolledWindow.__init__(self)
     self.set_name(name)
     self.vbox = VBox()
     self.vbox.show()
     self.add_with_viewport(self.vbox)
Exemplo n.º 16
0
 def __init__(self, rows=[], name='ScrollCList',
              columns=[], **args):
     ScrolledWindow.__init__(self)
     HasListbox.__init__(self, self, name=name, **args)
     self.show()
Exemplo n.º 17
0
 def __init__(self, rows=[], name='ScrollCList', columns=[], **args):
     ScrolledWindow.__init__(self)
     HasListbox.__init__(self, self, name=name, **args)
     self.show()