Skip to content

Commit

Permalink
qt updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jirhiker committed Jan 21, 2025
1 parent 367969c commit 8088d61
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
3 changes: 1 addition & 2 deletions pychron/core/ui/qt/tabular_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from pickle import dumps

import six
from PyQt5.QtCore import QSize
from pyface.qt import QtCore, QtGui
from pyface.qt.QtGui import QHeaderView, QApplication
from traits.api import (
Expand Down Expand Up @@ -377,7 +376,7 @@ def sizeHint(self):
try:
return super(_TableView, self).sizeHint()
except TypeError:
return QSize()
return QtCore.QSize()

# private
def _copy(self):
Expand Down
8 changes: 3 additions & 5 deletions pychron/core/ui/qt/video_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ===============================================================================
from PyQt5 import QtWidgets
from PyQt5.QtCore import QTimer, QSize, Qt, QPoint
from PyQt5.QtGui import QImage, QPixmap, QPainter, QPen
from pyface.qt import QtCore
from pyface.qt import QtWidgets, QtCore
from pyface.qt.QtCore import QTimer, QSize, Qt, QPoint
from pyface.qt.QtGui import QImage, QPixmap, QPainter, QPen, QLabel
from traitsui.basic_editor_factory import BasicEditorFactory

try:
import vlc
except ImportError:
pass
from PyQt5.QtWidgets import QLabel
from traitsui.qt4.editor import Editor

from traits.api import Any
Expand Down
4 changes: 2 additions & 2 deletions pychron/envisage/tasks/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def get_key_binding(k_id):

try:
return user_key_map[k_id][0]
except KeyError:
pass
except (KeyError, IndexError, TypeError) as e:
print(f'Key binding "{k_id}" not found. {e}')


class myTaskAction(TaskAction):
Expand Down
6 changes: 6 additions & 0 deletions pychron/experiment/utilities/human_error_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ def _check_run(self, run, inform, test):
# self._mass_spec_required = True
self._set_extraction_line_required(run)

# check for syn extraction
if run.extraction_script:
if "syn" in run.extraction_script:
if not run.syn_extraction_script:
return "syn extraction script missing"

def _set_extraction_line_required(self, run):
if any(
(
Expand Down
2 changes: 1 addition & 1 deletion pychron/image/toupcam/camera_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from copy import copy
from io import StringIO
from PIL import Image
from PyQt5.QtGui import QImage
from pyface.qt.QtGui import QImage
from numpy import zeros, uint8, uint32

# ============= enthought library imports =======================
Expand Down
2 changes: 1 addition & 1 deletion pychron/updater/library_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import subprocess
import sys

from PyQt5.QtWidgets import QApplication
from pyface.qt.QtGui import QApplication
from traits.api import HasTraits, Str, List, Int, Button
from traitsui.api import View, UItem, Item, TabularEditor, HGroup
from traitsui.tabular_adapter import TabularAdapter
Expand Down

0 comments on commit 8088d61

Please sign in to comment.