Initial commit
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
# Copyright (C) 2026 Seth Hillbrand
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
"""Application entry point and QApplication setup."""
|
||||
|
||||
import sys
|
||||
import logging
|
||||
|
||||
from PySide6.QtWidgets import QApplication
|
||||
|
||||
from .ui.theme import build_stylesheet
|
||||
from .ui.main_window import MainWindow
|
||||
from .controller import CameraController
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def run():
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
|
||||
)
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
app.setApplicationName("YoloCam")
|
||||
app.setStyle("Fusion")
|
||||
app.setStyleSheet(build_stylesheet())
|
||||
|
||||
window = MainWindow()
|
||||
controller = CameraController(window, parent=window)
|
||||
window.set_controller(controller)
|
||||
window.show()
|
||||
|
||||
sys.exit(app.exec())
|
||||
Reference in New Issue
Block a user