Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
1gitclub committed Jan 5, 2016
1 parent af572e3 commit 85bb443
Show file tree
Hide file tree
Showing 10 changed files with 2,528 additions and 914 deletions.
156 changes: 74 additions & 82 deletions Ui_MainWindow.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Ui_Proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, parent=None):
Ui_MainWindow.__init__(self)

def setupWidget(self, wobj):
wobj.setWindowIcon(QIcon(QPixmap(":/logo/icons/logo/logo.png")))
wobj.setWindowIcon(QIcon(QPixmap(":/app/icons/app/logo.png")))
self.updatePortComBox(isOpening=True)
self.send_pushButton.setShortcut(QKeySequence(Qt.Key_Return + Qt.CTRL))

Expand Down
2,029 changes: 1,202 additions & 827 deletions appicons.py

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions genexe.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#-*- coding: utf-8 -*-
from distutils.core import setup
import py2exe

setup( zipfile=None,
windows=[{"script":"main.py", "icon_resources":[(1, "resources/icons/app/logo.ico")]}],
options={"py2exe":{"compressed":2, "bundle_files":1,
"includes":["sip", "PyQt4.QtGui", "PyQt4.QtCore"],
"dll_excludes": ["msvcm90.dll", "msvcp90.dll", "msvcr90.dll"] }})
5 changes: 2 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
from PyQt4.QtGui import QApplication
from MainWindow import MainWindow

__author__ = "Apache"
__author__ = "uname"
__version__ = "0.1"
__email__ = "[email protected]"

if __name__ == "__main__":
app = QApplication(sys.argv)
app.setStyle("plastique")
app.setStyle("cde")
widget = MainWindow()
widget.show()
sys.exit(app.exec_())
4 changes: 4 additions & 0 deletions resources/genicons.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
genqrc.py
pyrcc4 -py2 tmp.qrc -o ../appicons.py
del tmp.qrc
1,235 changes: 1,235 additions & 0 deletions resources/icons.py

Large diffs are not rendered by default.

Binary file added resources/icons/app/logo.ico
Binary file not shown.
Binary file added resources/icons/app/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/ui/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>SC_SerialTool</string>
<string>Pyser</string>
</property>
<property name="styleSheet">
<string notr="true"/>
Expand Down

0 comments on commit 85bb443

Please sign in to comment.