Skip to content

Commit

Permalink
Make sure plotly plugin uses QtPy
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Aug 6, 2016
1 parent 4509426 commit f9c2055
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions glue/plugins/exporters/plotly/qt/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import traceback
import webbrowser

from glue.external.qt import QtGui
from qtpy import QtWidgets
from glue.utils import nonpartial
from glue.utils.qt import load_ui
from glue.utils.qt.widget_properties import TextProperty, ButtonProperty


class QtPlotlyExporter(QtGui.QDialog):
class QtPlotlyExporter(QtWidgets.QDialog):

save_settings = ButtonProperty('checkbox_save')
username = TextProperty('text_username')
Expand All @@ -32,12 +32,12 @@ def __init__(self, plotly_args=[], plotly_kwargs={}, parent=None):

# Set up radio button groups

self._radio_account = QtGui.QButtonGroup()
self._radio_account = QtWidgets.QButtonGroup()
self._radio_account.addButton(self.ui.radio_account_glue)
self._radio_account.addButton(self.ui.radio_account_config)
self._radio_account.addButton(self.ui.radio_account_manual)

self._radio_sharing = QtGui.QButtonGroup()
self._radio_sharing = QtWidgets.QButtonGroup()
self._radio_sharing.addButton(self.ui.radio_sharing_public)
self._radio_sharing.addButton(self.ui.radio_sharing_secret)
self._radio_sharing.addButton(self.ui.radio_sharing_private)
Expand Down Expand Up @@ -79,7 +79,7 @@ def _set_allowed_sharing_modes(self):
else:
self.ui.radio_sharing_secret.setEnabled(True)
self.ui.radio_sharing_private.setEnabled(True)
QtGui.QApplication.instance().processEvents()
QtWidgets.QApplication.instance().processEvents()

def accept(self):

Expand Down Expand Up @@ -183,5 +183,5 @@ def accept(self):
def set_status(self, text, color):
self.ui.text_status.setText(text)
self.ui.text_status.setStyleSheet("color: {0}".format(color))
QtGui.QApplication.instance().processEvents()
QtWidgets.QApplication.instance().processEvents()

0 comments on commit f9c2055

Please sign in to comment.