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


Python sublime_plugin.EventListener方法代碼示例

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


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

示例1: __init__

# 需要導入模塊: import sublime_plugin [as 別名]
# 或者: from sublime_plugin import EventListener [as 別名]
def __init__(self):
		super(EventListener,self).__init__()
		self.linterQueue = 0
		self.linterRunning = False
		self.linterErrors = {}
		self.completionRunning = False
		self.validScope = "source.papyrus.skyrim"
		self.completionKeywordAs = ("as\tcast", "As ",)
		self.completionKeywordAuto = ("auto\tkeyword", "Auto",)
		self.completionKeywordAutoReadOnly = ("autoreadonly\tkeyword", "AutoReadOnly",)
		self.completionKeywordConditional = ("conditional\tkeyword", "Conditional",)
		self.completionKeywordExtends = ("extends\tkeyword", "Extends ",)
		self.completionKeywordGlobal = ("global\tkeyword", "Global",)
		self.completionKeywordHidden = ("hidden\tkeyword", "Hidden",)
		self.completionKeywordNative = ("native\tkeyword", "Native",)
		self.completionKeywordParent = ("parent\tkeyword", "Parent",)
		self.completionKeywordSelf = ("self\tkeyword", "Self",)
		self.completionKeywordFalse = ("false\tkeyword", "False",)
		self.completionKeywordNone = ("none\tkeyword", "None",)
		self.completionKeywordTrue = ("true\tkeyword", "True",)
		self.scriptContents = None

	# Clear cache in order to force an update 
開發者ID:Kapiainen,項目名稱:SublimePapyrus,代碼行數:25,代碼來源:Plugin.py


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