Skip to content

Commit

Permalink
Small fixes from FLAKE8
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunderland93 committed Sep 26, 2022
1 parent 8191991 commit 646a684
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ubuntusway-welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@

from PySide2.QtWidgets import (QApplication, QWidget, QPushButton, QVBoxLayout,
QDialog, QGroupBox, QGridLayout, QCheckBox,
QRadioButton, QLabel, QStackedWidget, QFileDialog,
QDialogButtonBox, QHBoxLayout, QLineEdit)
QRadioButton, QLabel, QStackedWidget,
QFileDialog, QDialogButtonBox, QHBoxLayout,
QLineEdit)
from PySide2.QtGui import QPixmap, QIcon
from PySide2.QtCore import Qt

Expand All @@ -41,6 +42,7 @@

i3 = Connection()


class Page1(QWidget):
def __init__(self):
super().__init__()
Expand Down Expand Up @@ -133,7 +135,7 @@ def setupUi(self):

def on_clicked_btnInstall(self):
msg = WarningMessage()
if Path(f"/usr/bin/calamares").is_file() and user == "ubuntu":
if Path(f'{"/usr/bin/calamares"}').is_file() and user == "ubuntu":
i3.command('exec /usr/bin/install-ubuntusway')
else:
msg.exec()
Expand Down Expand Up @@ -353,6 +355,7 @@ def apply(self):
def cancel(self):
self.close()


class ColorSchemeSelect(QWidget):
def __init__(self):
super().__init__()
Expand Down Expand Up @@ -433,7 +436,7 @@ def on_checked_autostart():
checkAutostart.toggled.connect(on_checked_autostart)

if Path(dest).is_file():
checkAutostart.setChecked(True)
checkAutostart.setChecked(True)

window = QWidget()
window.setFixedSize(650, 430)
Expand Down

0 comments on commit 646a684

Please sign in to comment.