本文整理匯總了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()