Пример #1
0
    def create_widgets(self):
        Read.create_widgets(self)
        self.list_store = gtk.ListStore(str, str)
        self.tree_view = gtk.TreeView(self.list_store)

        renderer_text = gtk.CellRendererText()
        column = gtk.TreeViewColumn("Key", renderer_text, text=0)
        #column.pack_start(renderer_text, expand=False)
        self.tree_view.append_column(column)

        renderer_text = gtk.CellRendererText()
        column = gtk.TreeViewColumn("Value", renderer_text, text=1)
        #column.pack_start(renderer_text, expand=True)
        self.tree_view.append_column(column)

        self.data_widget = gtk.ScrolledWindow()
        self.data_widget.add(self.tree_view)
        self.data_widget.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
        self.data_widget.set_size_request(-1, 100)
        self.data_widget.set_shadow_type(gtk.SHADOW_IN)
Пример #2
0
    def create_widgets(self):
        Read.create_widgets(self)
        self.list_store = gtk.ListStore(str, str)
        self.tree_view = gtk.TreeView(self.list_store)

        renderer_text = gtk.CellRendererText()
        column = gtk.TreeViewColumn("Key", renderer_text, text=0)
        #column.pack_start(renderer_text, expand=False)
        self.tree_view.append_column(column)

        renderer_text = gtk.CellRendererText()
        column = gtk.TreeViewColumn("Value", renderer_text, text=1)
        #column.pack_start(renderer_text, expand=True)
        self.tree_view.append_column(column)

        self.data_widget = gtk.ScrolledWindow()
        self.data_widget.add(self.tree_view)
        self.data_widget.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
        self.data_widget.set_size_request(-1, 100)
        self.data_widget.set_shadow_type(gtk.SHADOW_IN)
Пример #3
0
 def create_widgets(self):
     Read.create_widgets(self)
     self.data_widget = gtk.Label()
     self.data_widget.set_selectable(True)
     self.data_widget.set_alignment(0.0, 0.5)
     self.data_widget.set_use_markup(True)
Пример #4
0
 def create_widgets(self):
     Read.create_widgets(self)
     self.data_widget = gtk.Label()
     self.data_widget.set_selectable(True)
     self.data_widget.set_alignment(0.0, 0.5)
     self.data_widget.set_use_markup(True)