Skip to content

Commit

Permalink
Fix label to be x,y
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed May 26, 2016
1 parent 52c03bd commit 1d4c8af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/fastgr
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class MyApp(QtGui.QMainWindow, Ui_MainWindow):
QtGui.QMainWindow.__init__(self)
Ui_MainWindow.__init__(self)
self.setupUi(self)

self.x_position_indicator=QtGui.QLabel(u" x=%g"%0.)
self.x_position_indicator.setSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
self.x_position_indicator.setMaximumWidth(100)
Expand All @@ -39,8 +39,8 @@ class MyApp(QtGui.QMainWindow, Ui_MainWindow):
self.y_position_indicator.setSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
self.y_position_indicator.setMaximumWidth(100)
self.y_position_indicator.setMinimumWidth(100)
self.statusbar.addWidget(self.y_position_indicator)
self.statusbar.addWidget(self.y_position_indicator)

#btn commands
self.btnGenerateGR.clicked.connect(self.calculateGR)
self.btnLoadSQ.clicked.connect(self.read_SQ_file)
Expand Down Expand Up @@ -99,9 +99,9 @@ class MyApp(QtGui.QMainWindow, Ui_MainWindow):
else:
_x = event.xdata
_y = event.ydata

self.x_position_indicator.setText(u" x=%g" % _x)
self.y_position_indicator.setText(u" x=%g" % _y)
self.y_position_indicator.setText(u" y=%g" % _y)

def read_SQ_file_custom(self, filename):
qArray = []
Expand Down

0 comments on commit 1d4c8af

Please sign in to comment.