Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Feb 20, 2021
1 parent 2d03811 commit 96815b0
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 622 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "pypi"
[packages]
pyserial = "*"
qtpy = "*"
pyqt5 = "*"
pyside2 = "*"

[dev-packages]
pylama = "*"
Expand Down
64 changes: 25 additions & 39 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller -F .\main.spec
2 changes: 1 addition & 1 deletion csgo_gsi_arduino_lcd/debug/payload_viewer_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def run(self):
while self.running:
if not self.__pause:
if self.refreshable:
logging.debug(json.dumps(self.payload, indent=4))
logging.debug(json.dumps(self.payload, indent=2))
self.refreshable = False

def shutdown(self):
Expand Down
8 changes: 7 additions & 1 deletion csgo_gsi_arduino_lcd/ui/csgo_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""
import os
import sys
from typing import Optional

from csgo_gsi_arduino_lcd.data.server_thread import ServerThread
from qtpy.QtCore import QSize, Qt, Slot
Expand All @@ -29,6 +30,12 @@ def resource_path(relative_path: str):
class CsgoWindow(QWidget):
"""App UI."""

server_thread: Optional[ServerThread] = None
connect_btn: QPushButton
refresh_btn: QPushButton
payload_viewer_btn: QPushButton
comcb: QComboBox

def __init__(self):
"""Init UI."""
super(CsgoWindow, self).__init__()
Expand All @@ -38,7 +45,6 @@ def __init__(self):
)

# Widgets
self.server_thread = None
self.connect_btn = QPushButton("Connect")

self.comcb = QComboBox()
Expand Down
Loading

0 comments on commit 96815b0

Please sign in to comment.