当前位置: 首页>>代码示例>>Python>>正文


Python AEComponent.load方法代码示例

本文整理汇总了Python中scc.gui.ae.AEComponent.load方法的典型用法代码示例。如果您正苦于以下问题:Python AEComponent.load方法的具体用法?Python AEComponent.load怎么用?Python AEComponent.load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在scc.gui.ae.AEComponent的用法示例。


在下文中一共展示了AEComponent.load方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if self.loaded : return
		AEComponent.load(self)
		self._recursing = True
		cbGyroButton = self.builder.get_object("cbGyroButton")
		fill_buttons(cbGyroButton)
		self._recursing = False
开发者ID:TotalCaesar659,项目名称:sc-controller,代码行数:9,代码来源:gyro_action.py

示例2: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if self.loaded : return
		AEComponent.load(self)
		try:
			txCustomAction = self.builder.get_object("txCustomAction")
			txCustomAction.set_monospace(True)
		except: pass
开发者ID:wendeldr,项目名称:sc-controller,代码行数:9,代码来源:custom.py

示例3: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if self.loaded : return
		AEComponent.load(self)
		cbConfirmWith = self.builder.get_object("cbConfirmWith")
		cbCancelWith = self.builder.get_object("cbCancelWith")
		cbConfirmWith.set_row_separator_func( lambda model, iter : model.get_value(iter, 0) == "-" )
		cbCancelWith.set_row_separator_func( lambda model, iter : model.get_value(iter, 0)  == "-" )
开发者ID:kozec,项目名称:sc-controller,代码行数:9,代码来源:dpad.py

示例4: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if not self.loaded:
			AEComponent.load(self)
			self.setup_image()
			if self.app.osd_mode:
				self.builder.get_object('btnGrabKey').set_sensitive(False)
				self.builder.get_object('btnGrabAnother').set_sensitive(False)
开发者ID:kozec,项目名称:sc-controller,代码行数:9,代码来源:buttons.py

示例5: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if self.loaded : return
		AEComponent.load(self)
		cbAreaType = self.builder.get_object("cbAreaType")
		cbAreaType.set_row_separator_func( lambda model, iter : model.get_value(iter, 0) == "-" )
		self.on_wayland = "WAYLAND_DISPLAY" in os.environ or not isinstance(Gdk.Display.get_default(), GdkX11.X11Display)
		if self.on_wayland:
			self.builder.get_object("lblArea").set_text(_("Note: Mouse Region option is not available with Wayland-based display server"))
			self.builder.get_object("grArea").set_sensitive(False)
		
		# Remove options that are not applicable to currently editted input
		if self.editor.get_id() in STICKS:
			# Remove "Mouse Region", "Mouse" and "Mouse (Emulate Stick)" options
			# when editing stick bindings
			cb = self.builder.get_object("cbAxisOutput")
			for row in cb.get_model():
				if row[2] in ("wheel_pad", "area", "mouse", "mouse_pad"):
					cb.get_model().remove(row.iter)
		else:
			# Remove "Mouse" option when editing pads
			# (it's effectivelly same as Trackpad)
			cb = self.builder.get_object("cbAxisOutput")
			for row in cb.get_model():
				if row[2] in ("wheel_stick", "mouse_stick"):
					cb.get_model().remove(row.iter)
开发者ID:kozec,项目名称:sc-controller,代码行数:27,代码来源:axis_action.py

示例6: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if self.loaded : return
		AEComponent.load(self)
		cbGyroButton = self.builder.get_object("cbGyroButton")
		self._recursing = True
		cbGyroButton = self.builder.get_object("cbGyroButton")
		fill_buttons(cbGyroButton)
		self._recursing = False
		self.buttons = [ self.builder.get_object(x) for x in ("btPitch", "btYaw", "btRoll") ]
		self.cbs = [ self.builder.get_object(x) for x in ("cbPitchAbs", "cbYawAbs", "cbRollAbs") ]
		self.labels = [ self.builder.get_object(x) for x in ("lblPitch", "lblYaw", "lblRoll") ]
开发者ID:Micr0Bit,项目名称:sc-controller,代码行数:13,代码来源:gyro.py

示例7: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if AEComponent.load(self):
			markup = ""
			if self.editor.get_mode() == Action.AC_PAD:
				markup = MARKUP_PAD
			elif self.editor.get_mode() == Action.AC_STICK:
				markup = MARKUP_STICK
			elif self.editor.get_mode() == Action.AC_GYRO:
				markup = MARKUP_GYRO
			elif self.editor.get_mode() == Action.AC_TRIGGER:
				markup = MARKUP_TRIGGER
			else:
				markup = MARKUP_BUTTON
			
			long_names = {
				'LPAD' : _("Left Pad"),
				'RPAD' : _("Right Pad"),
				'LGRIP' : _("Left Grip"),
				'RGRIP' : _("Right Grip"),
				'LB' : _("Left Bumper"),
				'RB' : _("Right Bumper"),
				'LEFT' : _("Left Trigger"),
				'RIGHT' : _("Right Trigger"),
				'STICK' : _("Stick"),
			}
			
			markup = markup % {
				'what' : long_names.get(nameof(self.editor.get_id()),
								nameof(self.editor.get_id()).title())
			}
			self.builder.get_object("lblMarkup").set_markup(markup.strip(" \r\n\t"))
			return True
开发者ID:kozec,项目名称:sc-controller,代码行数:34,代码来源:first_page.py

示例8: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if not self.loaded:
			AEComponent.load(self)
			self.setup_image(grid_columns=2)
开发者ID:kozec,项目名称:sc-controller,代码行数:6,代码来源:axis.py

示例9: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if self.loaded : return
		AEComponent.load(self)
开发者ID:TotalCaesar659,项目名称:sc-controller,代码行数:5,代码来源:special_action.py

示例10: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if self.loaded : return
		AEComponent.load(self)
		cbAreaType = self.builder.get_object("cbAreaType")
		cbAreaType.set_row_separator_func( lambda model, iter : model.get_value(iter, 0) == "-" )
开发者ID:wendeldr,项目名称:sc-controller,代码行数:7,代码来源:axis_action.py

示例11: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if not self.loaded:
			AEComponent.load(self)
			self.setup_image()
开发者ID:TotalCaesar659,项目名称:sc-controller,代码行数:6,代码来源:buttons.py

示例12: load

# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
	def load(self):
		if not self.loaded:
			AEComponent.load(self)
			self.builder.get_object("lblClickAnyButton").set_visible(False)
开发者ID:Micr0Bit,项目名称:sc-controller,代码行数:6,代码来源:osk_buttons.py


注:本文中的scc.gui.ae.AEComponent.load方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。