Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(8)  |  Derive(0)  |  Import(2)

src/b/o/boarded-0.1/Boarded/gui.py   boarded(Download)
import pango
 
from Boarded.i18n import _
import Boarded.keypress as keypress
from Boarded.gui_miniicon import MiniIcon
  def build_main_menu(self):
    main_menu = gtk.Menu()
    hide_item = gtk.MenuItem(_("Hide keyboard"))
    hide_item.connect_object("activate", self.on_menu_item_activate, "main.hide")
    main_menu.append(hide_item)
    hide_item.show()
    groupsel_item = gtk.MenuItem(_("Show or hide keygroups"))
      group_item.set_active(bool(self.key_groups[group]))
    if len(self.config["keyboards"]) > 1:
      kbsel_item = gtk.MenuItem(_("Switch keyboard"))
      kbsel_menu = gtk.Menu()
      kbsel_item.set_submenu(kbsel_menu)
          kbsel_menu.append(kb_item)
          kb_item.show()
    save_geo_item = gtk.MenuItem(_("Save keyboard position and size"))
    save_geo_item.connect_object("activate", self.on_menu_item_activate, "main.save_geometry")
    main_menu.append(save_geo_item)

src/b/o/boarded-0.1/Boarded/configreader.py   boarded(Download)
  import pickle
 
from Boarded.i18n import _
from Boarded.config import DEFAULT_CONFIG, SAVABLE_PROPERTIES, \
                           DEFAULT_PROPERTIES