• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python ae.AEComponent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: load

	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,代码行数:25,代码来源:axis_action.py


示例2: load

	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,代码行数:7,代码来源:buttons.py


示例3: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		BindingEditor.__init__(self, app)
		self._recursing = False
		self.half = NoAction()
		self.full = NoAction()
		self.analog = NoAction()
开发者ID:kozec,项目名称:sc-controller,代码行数:7,代码来源:trigger.py


示例4: load

	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,代码行数:7,代码来源:gyro_action.py


示例5: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		ProfileManager.__init__(self)
		self._recursing = False
		self._profile_load_started = False
		self._current_profile = None
		self.parser = GuiActionParser()
开发者ID:TotalCaesar659,项目名称:sc-controller,代码行数:7,代码来源:special_action.py


示例6: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		TimerManager.__init__(self)
		self._recursing = False
		self.relative_area = False
		self.osd_area_instance = None
		self.parser = GuiActionParser()
开发者ID:wendeldr,项目名称:sc-controller,代码行数:7,代码来源:axis_action.py


示例7: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		MenuActionCofC.__init__(self)
		BindingEditor.__init__(self, app)
		self._recursing = False
		self._userdata_load_started = False
		self.actions = [ NoAction() ] * 8
开发者ID:Micr0Bit,项目名称:sc-controller,代码行数:7,代码来源:dpad.py


示例8: load

	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,代码行数:7,代码来源:dpad.py


示例9: load

	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,代码行数:7,代码来源:custom.py


示例10: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		UserDataManager.__init__(self)
		self._recursing = False
		self._userdata_load_started = False
		self._current_profile = None
		self._current_menu = None
		self.parser = GuiActionParser()
开发者ID:alwaysLearnin,项目名称:sc-controller,代码行数:8,代码来源:special_action.py


示例11: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		TimerManager.__init__(self)
		self._recursing = False
		self.relative_area = False
		self.osd_area_instance = None
		self.on_wayland = False
		self.circular_axis = MouseAction(Rels.REL_WHEEL)
		self.circular_buttons = [ None, None ]
		self.button = None
		self.parser = GuiActionParser()
开发者ID:kozec,项目名称:sc-controller,代码行数:11,代码来源:axis_action.py


示例12: load

	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,代码行数:11,代码来源:gyro.py


示例13: load

	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,代码行数:32,代码来源:first_page.py


示例14: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		self._recursing = False
		self.axes = [ None, None, None ]
开发者ID:Micr0Bit,项目名称:sc-controller,代码行数:4,代码来源:gyro.py


示例15: load

	def load(self):
		if not self.loaded:
			AEComponent.load(self)
			self.setup_image(grid_columns=2)
开发者ID:kozec,项目名称:sc-controller,代码行数:4,代码来源:axis.py


示例16: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		Chooser.__init__(self, app)
		self.full = None
开发者ID:kozec,项目名称:sc-controller,代码行数:4,代码来源:axis.py


示例17: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
开发者ID:kozec,项目名称:sc-controller,代码行数:2,代码来源:first_page.py


示例18: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		BindingEditor.__init__(self, app)
		self._recursing = False
		self.actions = [ NoAction() ] * 4
开发者ID:mulark,项目名称:sc-controller,代码行数:5,代码来源:tilt.py


示例19: __init__

	def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		MenuActionCofC.__init__(self)
		self._userdata_load_started = False
		self._recursing = False
开发者ID:wendeldr,项目名称:sc-controller,代码行数:5,代码来源:menu_only.py


示例20: load

	def load(self):
		if not self.loaded:
			AEComponent.load(self)
			self.setup_image()
开发者ID:TotalCaesar659,项目名称:sc-controller,代码行数:4,代码来源:buttons.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python osd.OSDWindow类代码示例发布时间:2022-05-27
下一篇:
Python actions.Action类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap