Beispiel #1
0
 def create_file_menu(self):
     fileMenu = BaseMenuBar.BaseMenuBar.create_file_menu(self)
     fileMenu.prepend(gtk.SeparatorMenuItem())
     GTKUtils.prepend_menu_item(fileMenu, "Load .torrent",
                                self.display._add_file_cb)
     GTKUtils.prepend_menu_item(fileMenu, "Open Torrent Folder",
                                self.display._open_folder)
 def create_view_menu(self):
   viewMenu = BaseMenuBar.BaseMenuBar.create_view_menu(self)
   viewMenu.prepend(gtk.SeparatorMenuItem())
   GTKUtils.prepend_menu_item(viewMenu, "Torrent Priorities", self.display._show_pane, self.display.priorityBox)
   GTKUtils.prepend_menu_item(viewMenu, "Peers", self.display._show_pane, self.display.peerBox)
   GTKUtils.prepend_menu_item(viewMenu, "Bandwidth", self.display._show_pane, self.display.bwGraph)
   return viewMenu
Beispiel #3
0
 def create_view_menu(self):
     viewMenu = BaseMenuBar.BaseMenuBar.create_view_menu(self)
     viewMenu.prepend(gtk.SeparatorMenuItem())
     GTKUtils.prepend_menu_item(viewMenu, "Torrent Priorities",
                                self.display._show_pane,
                                self.display.priorityBox)
     GTKUtils.prepend_menu_item(viewMenu, "Peers", self.display._show_pane,
                                self.display.peerBox)
     GTKUtils.prepend_menu_item(viewMenu, "Bandwidth",
                                self.display._show_pane,
                                self.display.bwGraph)
     return viewMenu
 def create_file_menu(self):
   fileMenu = BaseMenuBar.BaseMenuBar.create_file_menu(self)
   fileMenu.prepend(gtk.SeparatorMenuItem())
   GTKUtils.prepend_menu_item(fileMenu, "Load .torrent", self.display._add_file_cb)
   GTKUtils.prepend_menu_item(fileMenu, "Open Torrent Folder", self.display._open_folder)
Beispiel #5
0
 def create_view_menu(self):
   viewMenu = BaseMenuBar.BaseMenuBar.create_view_menu(self)
   viewMenu.prepend(gtk.SeparatorMenuItem())
   GTKUtils.prepend_menu_item(viewMenu, "Circuit List", self._show_pane, self.display.circuitList)
   GTKUtils.prepend_menu_item(viewMenu, "Bandwidth Graph", self._show_pane, self.display.bwGraph)
   return viewMenu
Beispiel #6
0
 def create_debug_menu(self):
   debugMenu = BaseMenuBar.BaseMenuBar.create_debug_menu(self)
   debugMenu.prepend(gtk.SeparatorMenuItem())
   GTKUtils.prepend_menu_item(debugMenu, "Console", self._show_pane, self.display.console)
   GTKUtils.prepend_menu_item(debugMenu, "Bank", self._show_pane, self.display.bankDisplay)
   return debugMenu