Skip to content
Snippets Groups Projects
Commit ddb08e8e authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Remove a few abbreviations

parent 98e3b5c9
No related branches found
No related tags found
1 merge request!134Remove a few abbreviations
Pipeline #88547 passed
......@@ -68,8 +68,9 @@ class Port(ABC):
@abstractmethod
def add_signal(self, signal: Signal) -> None:
"""
Connect this port to the entered signal. If the entered signal isn't connected to
this port then connect the entered signal to the port as well.
Connect this port to the entered signal. If the entered signal is not
connected to this port then connect the entered signal to the port as
well.
"""
raise NotImplementedError
......
......@@ -369,7 +369,7 @@ class Schedule:
for outport in outports:
op = outport.operation
if op.graph_id not in self._start_times:
# Schedule the operation if it doesn't have a start time yet.
# Schedule the operation if it does not have a start time yet.
op_start_time = 0
for inport in op.inputs:
assert (
......
......@@ -70,7 +70,10 @@ def compile_rc(*filenames: str) -> None:
if rcc is None:
rcc = shutil.which("pyrcc5")
arguments = f"-o {outfile} {filename}"
assert rcc, "PySide2 compiler failed, can't find rcc"
assert rcc, (
"Qt Resource compiler failed, cannot find pyside2-rcc, rcc, or"
" pyrcc5"
)
os_ = sys.platform
if os_.startswith("linux"): # Linux
......@@ -141,7 +144,10 @@ def compile_ui(*filenames: str) -> None:
if uic_ is None:
uic_ = shutil.which("pyuic5")
arguments = f"-o {outfile} {filename}"
assert uic_, "PySide2 compiler failed, can't find uic"
assert uic_, (
"Qt User Interface Compiler failed, cannot find pyside2-uic,"
" uic, or pyuic5"
)
os_ = sys.platform
if os_.startswith("linux"): # Linux
......
......@@ -39,7 +39,7 @@ Usage:
- 40
The last `exception(str)` is used to capture exceptions output, that normally
won't be captured.
will not be captured.
See https://docs.python.org/3/howto/logging.html for more information.
Log Uncaught Exceptions:
......@@ -50,12 +50,9 @@ import logging
import logging.handlers
import os
import sys
import traceback
from logging import Logger
from types import TracebackType
from typing import Optional, Type, Union
from qtpy import QtCore, QtWidgets
from typing import Type, Union
def getLogger(
......
......@@ -404,7 +404,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
buttons: list[QAbstractButton] = box.buttons()
buttons[0].setText(self.tr("&Exit"))
buttons[1].setText(self.tr("&Cancel"))
checkbox = QCheckBox(self.tr("Don't ask again"))
checkbox = QCheckBox(self.tr("Do not ask again"))
box.setCheckBox(checkbox)
ret = box.exec_()
......
......@@ -971,7 +971,7 @@ class SFG(AbstractOperation):
for outport in curr_iter_ports:
for signal in outport.signals:
new_inport = signal.destination
# Don't traverse over delays.
# Do not traverse over delays.
if new_inport is not None and not isinstance(
new_inport.operation, Delay
):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment