~zeitgeist/zeitgeist-explorer/git-import

« back to all changes in this revision

Viewing changes to zgexplorer/window.py

  • Committer: Manish Sinha
  • Date: 2013-07-12 07:39:18 UTC
  • Revision ID: git-v1:8167509ae1167e2cda5ae78f319b8a5829cddadf
Created basic structure of Datasourceviewer

Signed-off-by: Manish Sinha <manishsinha@ubuntu.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
from zgexplorer.monitorviewer import MonitorViewer
27
27
from zgexplorer.applicationsviewer import ApplicationsViewer
 
28
from zgexplorer.datasourceviewer import DatasourceViewer
 
29
 
28
30
from zgexplorer.templates import all_events
29
31
 
30
32
class ExplorerMainWindow(Gtk.Window):
47
49
        main_box.pack_start(self.notebook, True, True, 12)
48
50
 
49
51
        self.monitor_window = MonitorWindow(self)
50
 
        #main_box.pack_start(self.monitor_window, True, True, 12)
51
52
        self.notebook.append_page(self.monitor_window, 
52
53
            Gtk.Label("Monitor Events"))
 
54
            
53
55
        self.applications_window = ApplicationsWindow(self)
54
56
        self.notebook.append_page(self.applications_window, 
55
57
            Gtk.Label("Applications"))
 
58
        
 
59
        self.ds_window = DatasourceWindow(self)
 
60
        self.notebook.append_page(self.ds_window, 
 
61
            Gtk.Label("Datasources"))
56
62
 
57
63
        self.show_all()
58
64
 
88
94
 
89
95
        self.apps_inst = ApplicationsViewer(self.main_window)
90
96
        self.hbox.pack_start(self.apps_inst, True, True, 12)
 
97
 
 
98
class DatasourceWindow(Gtk.VBox):
 
99
 
 
100
    def __init__(self, window):
 
101
        super(DatasourceWindow, self).__init__()
 
102
 
 
103
        self.main_window = window
 
104
 
 
105
        self.hbox = Gtk.HBox()
 
106
        self.pack_start(self.hbox, True, True, 12)
 
107
 
 
108
        self.ds_inst = DatasourceViewer(self.main_window)
 
109
        self.hbox.pack_start(self.ds_inst, True, True, 12)