Skip to content

Commit

Permalink
add packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
happyZYM committed Feb 24, 2024
1 parent 45f7aa5 commit 0d55cca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# PEHeler
1 change: 1 addition & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller -w -n PEHelper main.py -i .\static\icon.ico --add-data=static/icon.ico:static/ --noconfirm
9 changes: 7 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import sys
import sys, os
import pickle
import copy
from math import pi
from PyQt6.QtCore import Qt
from PyQt6.QtWidgets import QMenu
from PyQt6.QtGui import QAction
from PyQt6.QtGui import QAction,QIcon
from PyQt6.QtWidgets import QMessageBox
from PyQt6.QtWidgets import QListWidget, QListWidgetItem, QAbstractItemView
from PyQt6.QtWidgets import QApplication, QMainWindow, QMenuBar, QMenu, QTabWidget, QVBoxLayout, QWidget, QLabel, QLineEdit, QTextEdit, QPushButton, QDialog, QHBoxLayout, QFileDialog
from uncertaintytrack import TrackUncertainty # Make sure to import your TrackUncertainty module

if getattr(sys, 'frozen', None):
basedir = sys._MEIPASS
else:
basedir = os.path.dirname(__file__)
class AboutDialog(QDialog):
def __init__(self):
super().__init__()
Expand All @@ -35,6 +39,7 @@ def __init__(self):
super().__init__()

self.setWindowTitle("PEHelper - Physics Experiment Helper")
self.setWindowIcon(QIcon(os.path.join(basedir,"static/icon.ico")))
self.setGeometry(100, 100, 800, 600)

menubar = self.menuBar()
Expand Down

0 comments on commit 0d55cca

Please sign in to comment.