buncha shit
All checks were successful
Build MuCaPy Executable / build-and-package (push) Successful in 1m40s
All checks were successful
Build MuCaPy Executable / build-and-package (push) Successful in 1m40s
This commit is contained in:
@@ -32,7 +32,7 @@ jobs:
|
|||||||
pyinstaller --onefile --windowed mucapy/main.py \
|
pyinstaller --onefile --windowed mucapy/main.py \
|
||||||
--add-data "mucapy/styling:styling" \
|
--add-data "mucapy/styling:styling" \
|
||||||
--add-data "mucapy/models:models" \
|
--add-data "mucapy/models:models" \
|
||||||
--hidden-import=todo
|
--add-data "mucapy/todopackage:todopackage"
|
||||||
|
|
||||||
- name: Upload executable artifact
|
- name: Upload executable artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,3 +8,4 @@ mucapy/seperate/__pycache__/main.cpython-313.pyc
|
|||||||
mucapy/seperate/__pycache__/MainWindow.cpython-313.pyc
|
mucapy/seperate/__pycache__/MainWindow.cpython-313.pyc
|
||||||
mucapy/seperate/__pycache__/MultiCamYOLODetector.cpython-313.pyc
|
mucapy/seperate/__pycache__/MultiCamYOLODetector.cpython-313.pyc
|
||||||
mucapy/seperate/__pycache__/NetworkCameraDialog.cpython-313.pyc
|
mucapy/seperate/__pycache__/NetworkCameraDialog.cpython-313.pyc
|
||||||
|
mucapy/__pycache__/todo.cpython-313.pyc
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ from PyQt5.QtCore import Qt, QTimer, QDir, QSize, QSettings, QDateTime, QRect, Q
|
|||||||
from PyQt5.QtGui import (QImage, QPixmap, QIcon, QColor, QKeySequence, QPainter,
|
from PyQt5.QtGui import (QImage, QPixmap, QIcon, QColor, QKeySequence, QPainter,
|
||||||
QPen, QBrush)
|
QPen, QBrush)
|
||||||
import platform
|
import platform
|
||||||
from mucapy import todo
|
import mucapy.todopackage.todo as todo
|
||||||
import time
|
import time
|
||||||
import requests
|
import requests
|
||||||
import subprocess
|
import subprocess
|
||||||
@@ -881,7 +881,7 @@ class AboutWindow(QDialog):
|
|||||||
todo_text = self.get_todo_text()
|
todo_text = self.get_todo_text()
|
||||||
todo_label = QLabel(f"<pre>{todo_text}</pre>")
|
todo_label = QLabel(f"<pre>{todo_text}</pre>")
|
||||||
todo_label.setWordWrap(True)
|
todo_label.setWordWrap(True)
|
||||||
todo_label.setAlignment(Qt.AlignCenter)
|
todo_label.setAlignment(Qt.AlignLeft)
|
||||||
|
|
||||||
# TODO: Fix this xD ; Fixing a TODO lol
|
# TODO: Fix this xD ; Fixing a TODO lol
|
||||||
try:
|
try:
|
||||||
@@ -897,14 +897,26 @@ class AboutWindow(QDialog):
|
|||||||
print(f"Missing a Style File! => {todo_style_path}")
|
print(f"Missing a Style File! => {todo_style_path}")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
self.info_obj = todo.todo()
|
||||||
|
info_text = self.get_info_text()
|
||||||
|
info_label = QLabel(f"<pre>{info_text}</pre>")
|
||||||
|
info_label.setWordWrap(True)
|
||||||
|
info_label.setAlignment(Qt.AlignCenter)
|
||||||
|
info_label.setStyleSheet("color: #3eff00 font-style: italic;")
|
||||||
|
|
||||||
self.camobj = todo.todo()
|
self.camobj = todo.todo()
|
||||||
cam_text = self.get_cam_text()
|
cam_text = self.get_cam_text()
|
||||||
cam_label = QLabel(f"<pre>{cam_text}</pre>")
|
cam_label = QLabel(f"<pre>{cam_text}</pre>")
|
||||||
cam_label.setWordWrap(True)
|
cam_label.setWordWrap(True)
|
||||||
cam_label.setAlignment(Qt.AlignCenter)
|
cam_label.setAlignment(Qt.AlignCenter)
|
||||||
cam_label.setStyleSheet("color: #FFFF; font-style: italic;")
|
cam_label.setStyleSheet("color: #ffffff; font-style: italic;")
|
||||||
layout.addWidget(todo_label)
|
|
||||||
layout.addWidget(cam_label)
|
if True == True:
|
||||||
|
layout.addWidget(info_label)
|
||||||
|
layout.addWidget(todo_label)
|
||||||
|
layout.addWidget(cam_label)
|
||||||
|
else:
|
||||||
|
pass
|
||||||
|
|
||||||
def toggle_expand(self, checked):
|
def toggle_expand(self, checked):
|
||||||
for key, label in self.full_labels.items():
|
for key, label in self.full_labels.items():
|
||||||
@@ -1001,7 +1013,17 @@ class AboutWindow(QDialog):
|
|||||||
return "Invalid TODO format."
|
return "Invalid TODO format."
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return f"Error retrieving TODO: {e}"
|
return f"Error retrieving TODO: {e}"
|
||||||
|
|
||||||
|
def get_info_text(self):
|
||||||
|
try:
|
||||||
|
info_text = self.info_obj.getinfo()
|
||||||
|
if isinstance(info_text, str):
|
||||||
|
return info_text.strip()
|
||||||
|
else:
|
||||||
|
return "Invalid"
|
||||||
|
except Exception as e:
|
||||||
|
return f"fuck you => {e}"
|
||||||
|
|
||||||
def get_cam_text(self):
|
def get_cam_text(self):
|
||||||
try:
|
try:
|
||||||
cam_text = self.camobj.getcams()
|
cam_text = self.camobj.getcams()
|
||||||
|
|||||||
0
mucapy/todopackage/__init__.py
Normal file
0
mucapy/todopackage/__init__.py
Normal file
@@ -5,26 +5,28 @@ anyways, if you have suggestions pr this shit
|
|||||||
|
|
||||||
idk if you are smarter than me then actually do them.
|
idk if you are smarter than me then actually do them.
|
||||||
|
|
||||||
fuck you
|
fuck you , if you can't read this then kys. This is designed to be very readable.
|
||||||
-Rattatwinko 8.jun.25 (20:25)
|
-Rattatwinko 8.jun.25 (20:25)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class todo:
|
class todo:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
#------------------------------------------------------------------------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------------------------------------------------------------------------#
|
||||||
self.todo : str = """
|
self.information : str = """
|
||||||
|
|
||||||
Very Good Very Nice Todo List:
|
Very Good Very Nice Todo List:
|
||||||
|
|
||||||
NOTE: If you want to run this in Visual Studio Codes built in Terminal you will get fucked in your tiny tight ass.
|
NOTE: If you want to run this in Visual Studio Codes built in Terminal you will get fucked in your tiny tight ass.
|
||||||
NOTE: If you are running this from the Build Executable from the Workflow , you ass is fine (you wont get fucked you slut)
|
NOTE: If you ran this from the Workflow Package, you have somehow managed to fix errors even God cant figure out.
|
||||||
NOTE: If you compiled this yourself ; you are one Fucking Genious
|
NOTE: If you compiled this yourself ; you are one Fucking Genious
|
||||||
|
|
||||||
#-----------------------#
|
#-----------------------#
|
||||||
# Changes: #
|
# Changes: #
|
||||||
# Not Very Much lolz #
|
# Not Very Much lolz #
|
||||||
#-----------------------#
|
#-----------------------#
|
||||||
|
""" # This will center!
|
||||||
|
|
||||||
|
self.todo:str="""
|
||||||
TODO:
|
TODO:
|
||||||
[] - Fix Network Cameras from Crashing the Programm (This sometimes happens when only network cams are selected and it times out)
|
[] - Fix Network Cameras from Crashing the Programm (This sometimes happens when only network cams are selected and it times out)
|
||||||
[] - Make Seperate Styling (unlikely that this will happen)
|
[] - Make Seperate Styling (unlikely that this will happen)
|
||||||
@@ -33,7 +35,7 @@ TODO:
|
|||||||
- NOTE: http://pendelcam.kip.uni-heidelberg.de/mjpg/video.mjpg
|
- NOTE: http://pendelcam.kip.uni-heidelberg.de/mjpg/video.mjpg
|
||||||
This is a Testing URL for MJPEG (stable and renders fine)
|
This is a Testing URL for MJPEG (stable and renders fine)
|
||||||
|
|
||||||
""" # This will display Centered (look in about window class)
|
""" # This will display lefty (look in about window class)
|
||||||
#------------------------------------------------------------------------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------------------------------------------------------------------------#
|
||||||
|
|
||||||
self.cameraURL : str = """
|
self.cameraURL : str = """
|
||||||
@@ -43,8 +45,22 @@ Cameras:
|
|||||||
|
|
||||||
#------------------------------------------------------------------------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
For a change we actually declare the Types.
|
||||||
|
I usually leave this to the Interpreter, it does it anyway
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
# Return the Todo String
|
||||||
def gettodo(self) -> str:
|
def gettodo(self) -> str:
|
||||||
return self.todo
|
return self.todo
|
||||||
|
|
||||||
|
# Return the Information about the Programm
|
||||||
|
def getinfo(self) -> str:
|
||||||
|
return self.information
|
||||||
|
|
||||||
|
# Return the Camera URL Thing
|
||||||
def getcams(self) -> str:
|
def getcams(self) -> str:
|
||||||
return self.cameraURL
|
return self.cameraURL
|
||||||
|
|
||||||
Reference in New Issue
Block a user