當前位置: 首頁>>代碼示例>>Python>>正文


Python ToplevelGroupingSource.initialize方法代碼示例

本文整理匯總了Python中kupfer.obj.grouping.ToplevelGroupingSource.initialize方法的典型用法代碼示例。如果您正苦於以下問題:Python ToplevelGroupingSource.initialize方法的具體用法?Python ToplevelGroupingSource.initialize怎麽用?Python ToplevelGroupingSource.initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在kupfer.obj.grouping.ToplevelGroupingSource的用法示例。


在下文中一共展示了ToplevelGroupingSource.initialize方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		bookmark_file = os.path.expanduser(BOOKMARKS_FILE)
		gfile = gio.File(bookmark_file)
		self.monitor = gfile.monitor_file(gio.FILE_MONITOR_NONE, None)
		if self.monitor:
			self.monitor.connect("changed", self._on_bookmarks_changed)
開發者ID:CharString,項目名稱:kupfer,代碼行數:9,代碼來源:vinagre.py

示例2: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     try:
         shortcutsFile = open(os.path.expanduser(__kupfer_settings__["shortcuts_source_path"]), 'r')
         try:
             self.shortcuts = json.load(shortcutsFile)["shortcuts"]
         except Exception:
             pretty.print_debug(__name__, "xi")
         shortcutsFile.close()
     except Exception:
         pretty.print_debug(__name__, "xixi")
開發者ID:hugosenari,項目名稱:Kupfer-Plugins,代碼行數:13,代碼來源:app_shortcuts.py

示例3: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        # listen to d-bus signals for updates
        signals = [
            "ContactAbsence",
            "ContactPresence",
            "ContactStatus",
            "AccountPresence",
            "Roster",
            "RosterInfo",
        ]

        session_bus = dbus.Bus()

        for signal in signals:
            dbus_signal_connect_weakly(session_bus, signal,
                    self._signal_update, dbus_interface=_IFACE_NAME)
開發者ID:pbx,項目名稱:kupfer,代碼行數:19,代碼來源:gajim.py

示例4: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		__kupfer_settings__.connect("plugin-setting-changed", self._changed)
開發者ID:CharString,項目名稱:kupfer,代碼行數:5,代碼來源:__init__.py

示例5: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		self.monitor_token = self.monitor_directories(self._ssh_home)
開發者ID:cjparsons74,項目名稱:kupfer,代碼行數:5,代碼來源:ssh_hosts.py

示例6: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
開發者ID:CharString,項目名稱:kupfer,代碼行數:4,代碼來源:tsclient.py

示例7: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     self._install_dbus_signal()
     self._buddy_update_timer = scheduler.Timer()
     self._buddy_update_queue = set()
開發者ID:pbx,項目名稱:kupfer,代碼行數:7,代碼來源:pidgin.py

示例8: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		if not os.path.isdir(self._claws_addrbook_dir):
			return

		self.monitor_token = self.monitor_directories(self._claws_addrbook_dir)
開發者ID:cjparsons74,項目名稱:kupfer,代碼行數:8,代碼來源:clawsmail.py

示例9: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		abook_dirs = list(support.get_addressbook_dirs())
		if abook_dirs:
			self.monitor_token = self.monitor_directories(*abook_dirs)
開發者ID:DarwinAwardWinner,項目名稱:kupfer,代碼行數:7,代碼來源:thunderbird.py

示例10: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		if not os.path.isdir(self._opera_home):
			return

		self.monitor_token = self.monitor_directories(self._opera_home)
開發者ID:tuxcanfly,項目名稱:kupfer,代碼行數:8,代碼來源:operamail.py

示例11: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		self.monitor_token = self.monitor_directories(_SITEMANAGER_DIR)
開發者ID:CharString,項目名稱:kupfer,代碼行數:5,代碼來源:filezilla.py

示例12: initialize

# 需要導入模塊: from kupfer.obj.grouping import ToplevelGroupingSource [as 別名]
# 或者: from kupfer.obj.grouping.ToplevelGroupingSource import initialize [as 別名]
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		abook_dir = support.get_addressbook_dir()
		if not abook_dir or not os.path.isdir(abook_dir):
			return
		self.monitor_token = self.monitor_directories(abook_dir)
開發者ID:tuxcanfly,項目名稱:kupfer,代碼行數:8,代碼來源:thunderbird.py


注:本文中的kupfer.obj.grouping.ToplevelGroupingSource.initialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。