Python PyQt4.Qt.QSettings() Examples

The following are 12 code examples of PyQt4.Qt.QSettings(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module PyQt4.Qt , or try the search function .
Example #1
Source File: control_gui_override_mavutil.py    From gr-uaslink with GNU General Public License v3.0 6 votes vote down vote up
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) 
Example #2
Source File: scope.py    From Thrifty with GNU General Public License v3.0 5 votes vote down vote up
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "scope")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
Example #3
Source File: top_block.py    From OregonDecoder with GNU General Public License v2.0 5 votes vote down vote up
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "top_block")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
Example #4
Source File: am_flow_example.py    From ham2mon with GNU General Public License v3.0 5 votes vote down vote up
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "am_flow_example")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
Example #5
Source File: nbfm_flow_example.py    From ham2mon with GNU General Public License v3.0 5 votes vote down vote up
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "nbfm_flow_example")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
Example #6
Source File: control_gui_override.py    From gr-uaslink with GNU General Public License v3.0 5 votes vote down vote up
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "control_gui")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
Example #7
Source File: control_gui_override_control.py    From gr-uaslink with GNU General Public License v3.0 5 votes vote down vote up
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "control_gui")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
Example #8
Source File: control_gui_run.py    From gr-uaslink with GNU General Public License v3.0 5 votes vote down vote up
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "control_gui")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
Example #9
Source File: control_gui.py    From gr-uaslink with GNU General Public License v3.0 5 votes vote down vote up
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "control_gui")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
Example #10
Source File: rp_eclipse.py    From piradar with GNU Affero General Public License v3.0 5 votes vote down vote up
def closeEvent(self, event):
        if GUI:
            self.settings = Qt.QSettings("GNU Radio", "top_block")
            self.settings.setValue("geometry", self.saveGeometry())
            event.accept() 
Example #11
Source File: os_uhf_rx.py    From gr-opssat with GNU General Public License v3.0 5 votes vote down vote up
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "os_uhf_rx")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept() 
Example #12
Source File: os_demod_decode.py    From gr-opssat with GNU General Public License v3.0 5 votes vote down vote up
def closeEvent(self, event):
        self.settings = Qt.QSettings("GNU Radio", "os_demod_decode")
        self.settings.setValue("geometry", self.saveGeometry())
        event.accept()