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


Python Qt.QSettings方法代码示例

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


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

示例1: closeEvent

# 需要导入模块: from PyQt4 import Qt [as 别名]
# 或者: from PyQt4.Qt import QSettings [as 别名]
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "control_gui")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept()
    
    #def connect_to_vehicle(self,connection_string,baud_rate):
    #    self.connection_string=connection_string
    #    self.baud_rate=baud_rate
    #    print("Connecting to vehicle on: %s" % (self.connection_string,))
        #self.vehicle = connect(self.connection_string,baud=57600, wait_ready='gps_0')
   #     self.mavlink_connection = mavutil.mavlink_connection(self.connection,   baud=self.baud_rate)
   #     print("connected")
    #def send_rc(master, data):
	#    for i in xrange(1):
	#	    self.mavlink_connection.mav.rc_channels_override_encode (
	#		     master.target_system, master.target_component, *data)
    #        print ("sending rc: %s"%data) 
开发者ID:deptofdefense,项目名称:gr-uaslink,代码行数:19,代码来源:control_gui_override_mavutil.py

示例2: closeEvent

# 需要导入模块: from PyQt4 import Qt [as 别名]
# 或者: from PyQt4.Qt import QSettings [as 别名]
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "scope")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
开发者ID:swkrueger,项目名称:Thrifty,代码行数:6,代码来源:scope.py

示例3: closeEvent

# 需要导入模块: from PyQt4 import Qt [as 别名]
# 或者: from PyQt4.Qt import QSettings [as 别名]
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "top_block")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
开发者ID:bkerler,项目名称:OregonDecoder,代码行数:6,代码来源:top_block.py

示例4: closeEvent

# 需要导入模块: from PyQt4 import Qt [as 别名]
# 或者: from PyQt4.Qt import QSettings [as 别名]
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "am_flow_example")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
开发者ID:madengr,项目名称:ham2mon,代码行数:6,代码来源:am_flow_example.py

示例5: closeEvent

# 需要导入模块: from PyQt4 import Qt [as 别名]
# 或者: from PyQt4.Qt import QSettings [as 别名]
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "nbfm_flow_example")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
开发者ID:madengr,项目名称:ham2mon,代码行数:6,代码来源:nbfm_flow_example.py

示例6: closeEvent

# 需要导入模块: from PyQt4 import Qt [as 别名]
# 或者: from PyQt4.Qt import QSettings [as 别名]
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "control_gui")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
开发者ID:deptofdefense,项目名称:gr-uaslink,代码行数:6,代码来源:control_gui_override.py

示例7: closeEvent

# 需要导入模块: from PyQt4 import Qt [as 别名]
# 或者: from PyQt4.Qt import QSettings [as 别名]
def closeEvent(self, event):
        if GUI:
            self.settings = Qt.QSettings("GNU Radio", "top_block")
            self.settings.setValue("geometry", self.saveGeometry())
            event.accept() 
开发者ID:scivision,项目名称:piradar,代码行数:7,代码来源:rp_eclipse.py

示例8: closeEvent

# 需要导入模块: from PyQt4 import Qt [as 别名]
# 或者: from PyQt4.Qt import QSettings [as 别名]
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "os_uhf_rx")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
开发者ID:esa,项目名称:gr-opssat,代码行数:6,代码来源:os_uhf_rx.py

示例9: closeEvent

# 需要导入模块: from PyQt4 import Qt [as 别名]
# 或者: from PyQt4.Qt import QSettings [as 别名]
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "os_demod_decode")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
开发者ID:esa,项目名称:gr-opssat,代码行数:6,代码来源:os_demod_decode.py


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