/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to viz/branchwin.py

  • Committer: Jelmer Vernooij
  • Date: 2007-10-03 19:24:20 UTC
  • mfrom: (280.2.1 gtk)
  • Revision ID: jelmer@samba.org-20071003192420-4xd5nwbirjkil8q8
Merge status for viz by Gary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        self.add(vbox)
60
60
 
61
61
        vbox.pack_start(self.construct_navigation(), expand=False, fill=True)
62
 
 
 
62
        vbox.pack_start(self.construct_loading_msg(), expand=False, fill=True)
 
63
        
63
64
        paned = gtk.VPaned()
64
65
        paned.pack1(self.construct_top(), resize=True, shrink=False)
65
66
        paned.pack2(self.construct_bottom(), resize=False, shrink=True)
68
69
        vbox.set_focus_child(paned)
69
70
 
70
71
        vbox.show()
 
72
    
 
73
    def construct_loading_msg(self):
 
74
        image_loading = gtk.image_new_from_stock(gtk.STOCK_REFRESH,
 
75
                                                 gtk.ICON_SIZE_BUTTON)
 
76
        image_loading.show()
 
77
        
 
78
        label_loading = gtk.Label(_("Please wait, loading ancestral graph..."))
 
79
        label_loading.set_alignment(0.0, 0.5)        
 
80
        label_loading.show()
 
81
        
 
82
        self.loading_msg_box = gtk.HBox()
 
83
        self.loading_msg_box.set_spacing(5)
 
84
        self.loading_msg_box.set_border_width(5)        
 
85
        self.loading_msg_box.pack_start(image_loading, False, False)
 
86
        self.loading_msg_box.pack_start(label_loading, True, True)
 
87
        self.loading_msg_box.show()
 
88
        
 
89
        return self.loading_msg_box
71
90
 
72
91
    def construct_top(self):
73
92
        """Construct the top-half of the window."""
205
224
        self.index = index
206
225
        self.treeview.set_model(self.model)
207
226
        self.treeview.get_selection().select_path(0)
 
227
        self.loading_msg_box.hide()
208
228
        return False
209
229
    
210
230
    def _on_key_pressed(self, widget, event):