Line | |
---|
1 | # The main program
|
---|
2 |
|
---|
3 | from .gui.gui import GUI
|
---|
4 |
|
---|
5 | def main():
|
---|
6 | """The main operation of the program."""
|
---|
7 | # menu = gtk.Menu()
|
---|
8 | # item = gtk.MenuItem()
|
---|
9 | # item.set_label("Menu Item")
|
---|
10 | # item.show()
|
---|
11 | # menu.append(item)
|
---|
12 |
|
---|
13 | # menu.show()
|
---|
14 |
|
---|
15 | # if appIndicator:
|
---|
16 | # if pygobject:
|
---|
17 | # ind = appindicator.Indicator.new ("mava-logger-x",
|
---|
18 | # "/home/vi/munka/repules/mlx/src/logo.ico",
|
---|
19 | # #"indicator-messages",
|
---|
20 | # appindicator.IndicatorCategory.APPLICATION_STATUS)
|
---|
21 | # ind.set_status (appindicator.IndicatorStatus.ACTIVE)
|
---|
22 | # else:
|
---|
23 | # ind = appindicator.Indicator ("mava-logger-x",
|
---|
24 | # "/home/vi/munka/repules/mlx/src/logo.ico",
|
---|
25 | # appindicator.CATEGORY_APPLICATION_STATUS)
|
---|
26 | # ind.set_status (appindicator.STATUS_ACTIVE)
|
---|
27 |
|
---|
28 | # ind.set_menu(menu)
|
---|
29 | # #ind.set_icon("distributor-logo")
|
---|
30 | # else:
|
---|
31 | # def popup_menu(status, button, time):
|
---|
32 | # menu.popup(None, None, gtk.status_icon_position_menu,
|
---|
33 | # button, time, status)
|
---|
34 | # statusIcon = gtk.StatusIcon()
|
---|
35 | # #statusIcon.set_from_stock(gtk.STOCK_FIND)
|
---|
36 | # statusIcon.set_from_file("logo.ico")
|
---|
37 | # statusIcon.set_tooltip_markup("MAVA Logger X")
|
---|
38 | # statusIcon.set_visible(True)
|
---|
39 | # statusIcon.connect('popup-menu', popup_menu)
|
---|
40 |
|
---|
41 | gui = GUI()
|
---|
42 | gui.build()
|
---|
43 | gui.run()
|
---|
44 |
|
---|
45 | if __name__ == "__main__":
|
---|
46 | main()
|
---|
47 |
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.