本文整理汇总了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)
示例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()
示例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()
示例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()
示例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()
示例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()
示例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()
示例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()
示例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()