Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P11 char Qt #460

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mxcubeqt/bricks/aperture_brick.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def init_aperture(self):
aperture_size_list = HWR.beamline.beam.aperture.get_diameter_size_list()
self.aperture_diameter_combo.clear()
for aperture_size in aperture_size_list:
self.aperture_diameter_combo.addItem("%d%s" % (aperture_size, unichr(956)))
self.aperture_diameter_combo.addItem("%s%s" % (aperture_size, unichr(956)))

aperture_position_list = HWR.beamline.beam.aperture.get_position_list()
self.aperture_position_combo.clear()
Expand Down
7 changes: 2 additions & 5 deletions mxcubeqt/bricks/desy/digital_zoom_brick.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@


class DigitalZoomBrick(BaseWidget):

STATE_COLORS = (
colors.LIGHT_YELLOW, # INITIALIZING
colors.LIGHT_GREEN, # ON
Expand Down Expand Up @@ -129,16 +128,15 @@ def setToolTip(self, name=None, state=None):
self.label.setToolTip(tip)

def motor_state_changed(self, state):

# self.positions_combo.setEnabled(self.motor_hwobj.is_ready())

if self.motor_hwobj.is_ready:
colors.set_widget_color(
self.positions_combo, colors.LIGHT_GREEN, qt_import.QPalette.Button,
self.positions_combo, colors.LIGHT_GREEN, qt_import.QPalette.Button
)
else:
colors.set_widget_color(
self.positions_combo, colors.LIGHT_GRAY, qt_import.QPalette.Button,
self.positions_combo, colors.LIGHT_GRAY, qt_import.QPalette.Button
)

# self.setToolTip(state=state)
Expand Down Expand Up @@ -242,7 +240,6 @@ def position_selected(self, index):
self.previous_position_button.setEnabled(index >= 0)

def predefined_position_changed(self, position, offset):

if self.positions:
for index, item in enumerate(self.positions):
if position.name == item.name:
Expand Down
Loading