Subversion Repositories basico

Rev

Rev 130 | Rev 133 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 130 Rev 131
Line 52... Line 52...
52
52
53
53
54
    def prepare(self):
54
    def prepare(self):
55
        self.set_hexpand(True)
55
        self.set_hexpand(True)
56
        self.set_property('fill', True)
56
        self.set_property('fill', True)
-
 
57
        self.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse("White"))
-
 
58
        for widget_name in ['boxVisor', 'scrVisor', 'vwpVisor']:
-
 
59
            widget = self.gui.get_widget(widget_name)
-
 
60
            widget.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse("White"))
57
61
58
62
59
    def get_node_sapnote(self, sid):
63
    def get_node_sapnote(self, sid):
60
        sapnotes = self.db.get_notes()
64
        sapnotes = self.db.get_notes()
61
        sapnote = sapnotes[sid]
65
        sapnote = sapnotes[sid]
Line 88... Line 92...
88
        label.set_selectable(True)
92
        label.set_selectable(True)
89
        infobox.add(label)
93
        infobox.add(label)
90
94
91
        # row widget
95
        # row widget
92
        row = Gtk.HBox()
96
        row = Gtk.HBox()
93
        #~ row.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse("Gold"))
-
 
-
 
97
        row.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse("Gold"))
94
        row.set_hexpand(True)
98
        row.set_hexpand(True)
95
99
96
        # row items widgets
100
        # row items widgets
97
        checkbox = Gtk.CheckButton()
101
        checkbox = Gtk.CheckButton()
98
        row.pack_start(checkbox, False, False, 6)
102
        row.pack_start(checkbox, False, False, 6)
Line 162... Line 166...
162
        btnactions.set_menu_model(actions_menu)
166
        btnactions.set_menu_model(actions_menu)
163
        row.pack_start(btnactions, False, False, 6)
167
        row.pack_start(btnactions, False, False, 6)
164
168
165
        container.pack_start(row, False, False, 0)
169
        container.pack_start(row, False, False, 0)
166
        container.pack_start(infobox, False, False, 0)
170
        container.pack_start(infobox, False, False, 0)
167
        container.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse("Gray"))
-
 
-
 
171
-
 
172
        #~ container.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse("Red"))
168
173
169
        return container
174
        return container
170
175
171
176
172
    def get_toggled(self):
177
    def get_toggled(self):
Line 231... Line 236...
231
236
232
        for sid in lbag:
237
        for sid in lbag:
233
            row = SAPNoteViewRow(self.app, sid)
238
            row = SAPNoteViewRow(self.app, sid)
234
            flowbox.add(row)
239
            flowbox.add(row)
235
240
236
        lblcount = self.gui.get_widget("lblSAPNoteViewCount")
-
 
237
        self.log.debug("lblcount: %s (%s)"% (str(lblcount), str(type(lblcount))))
-
 
-
 
241
        #~ lblcount = self.gui.get_widget("lblSAPNoteViewCount")
-
 
242
        #~ self.log.debug("lblcount: %s (%s)"% (str(lblcount), str(type(lblcount))))
238
        #~ lblcount.set_markup("<span size=\"30000\">%d</span>" % len(bag))
243
        #~ lblcount.set_markup("<span size=\"30000\">%d</span>" % len(bag))
239
        self.gui.swap_widget(self, flowbox)
244
        self.gui.swap_widget(self, flowbox)
240
245
241
        #~ toggled = self.get_toggled()
246
        #~ toggled = self.get_toggled()
242
        #~ lblSelectedNotes.set_markup('<b><small>%d</small>/%d of <big>%d</big></b>' % (len(toggled), len(bag), self.db.get_total()))
247
        #~ lblSelectedNotes.set_markup('<b><small>%d</small>/%d of <big>%d</big></b>' % (len(toggled), len(bag), self.db.get_total()))