Created
April 30, 2015 16:41
-
-
Save minorsecond/1fddf7ceb16bbec881a0 to your computer and use it in GitHub Desktop.
Broken UI (radio button doesn't work.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WindowClass(QtGui.QMainWindow, form_class): | |
def __init__(self, parent=None): | |
QtGui.QMainWindow.__init__(self, parent) | |
self.setupUi(self) | |
self.run_button.clicked.connect(self.run_button_clicked) # Bind the event handlers | |
def run_button_clicked(self): | |
global dms | |
""" | |
Set up the event handlers for clicking 'run'. | |
TODO: Verify that this functions | |
""" | |
sw_lat = (self.sw_lat_edit.text()) | |
sw_lon = (self.sw_lon_edit.text()) | |
ne_lat = (self.ne_lat_edit.text()) | |
ne_lon = (self.ne_lon_edit.text()) | |
if dms_radio.isChecked(): | |
dms = True | |
elif dd_radio.isChecked(): | |
dms = False | |
print(dms) | |
corners = dict(sw_lat=sw_lat, sw_lon=sw_lon, ne_lat=ne_lat, ne_lon=ne_lon) | |
ext_to_square(corners) | |
# This is probably wrong. Taken verbatim from website. | |
app = QtGui.QApplication(sys.argv) | |
Window = WindowClass(None) | |
Window.show() | |
app.exec() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment