當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。