Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
irods-clients
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RDM Infrastructure
irods-clients
Commits
c944c84a
Commit
c944c84a
authored
3 years ago
by
Daalen, Tim van
Browse files
Options
Downloads
Patches
Plain Diff
bugfix and failed attempt to add icon
parent
22cb4076
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gui/ui_files/__pycache__.py
+0
-10
0 additions, 10 deletions
gui/ui_files/__pycache__.py
icons/GUI.ico
+0
-0
0 additions, 0 deletions
icons/GUI.ico
pyinstaller_script.py
+2
-2
2 additions, 2 deletions
pyinstaller_script.py
with
2 additions
and
12 deletions
gui/ui_files/__pycache__.py
deleted
100644 → 0
+
0
−
10
View file @
22cb4076
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\irods-clientsb\gui\ui_files\__pycache__'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
This diff is collapsed.
Click to expand it.
icons/GUI.ico
0 → 100644
+
0
−
0
View file @
c944c84a
54.6 KiB
This diff is collapsed.
Click to expand it.
pyinstaller_script.py
+
2
−
2
View file @
c944c84a
...
@@ -28,7 +28,7 @@ def run_cmd(cmd):
...
@@ -28,7 +28,7 @@ def run_cmd(cmd):
# Convert the .ui files to .py files
# Convert the .ui files to .py files
def
ui_to_py
(
ui_folder
,
python
):
def
ui_to_py
(
ui_folder
,
python
):
# python -m PyQt5.uic.pyuic -x main.ui -o mainUI.py
# python -m PyQt5.uic.pyuic -x main.ui -o mainUI.py
for
ui_file
in
glob
(
ui_folder
+
'
*
'
):
for
ui_file
in
glob
(
ui_folder
+
'
*
.ui
'
):
filename
,
ext
=
path
.
splitext
(
ui_file
)
filename
,
ext
=
path
.
splitext
(
ui_file
)
print
(
f
"
Converting
{
filename
}
to .py
"
)
print
(
f
"
Converting
{
filename
}
to .py
"
)
run_cmd
(
f
"""
{
python
}
-m PyQt5.uic.pyuic -x
{
ui_file
}
-o
{
filename
+
"
.py
"
}
"""
)
run_cmd
(
f
"""
{
python
}
-m PyQt5.uic.pyuic -x
{
ui_file
}
-o
{
filename
+
"
.py
"
}
"""
)
...
@@ -105,7 +105,7 @@ if __name__ == "__main__":
...
@@ -105,7 +105,7 @@ if __name__ == "__main__":
run_cmd
(
f
"
{
venv_activate
}
{
cmd_sep
}
pip install -r requirements.txt
"
)
run_cmd
(
f
"
{
venv_activate
}
{
cmd_sep
}
pip install -r requirements.txt
"
)
# Step 3, Activate venv and tun pyinstaller
# Step 3, Activate venv and tun pyinstaller
run_cmd
(
f
"
{
venv_activate
}
{
cmd_sep
}
pyinstaller --clean --noconfirm
{
getcwd
()
}{
sep
}
irods-iBridgesGui.py
"
)
run_cmd
(
f
"
{
venv_activate
}
{
cmd_sep
}
pyinstaller --clean --noconfirm
--icon irods-iBridgesGui.ico
irods-iBridgesGui.py
"
)
dist_folder
=
f
"
{
getcwd
()
}{
sep
}
dist
"
dist_folder
=
f
"
{
getcwd
()
}{
sep
}
dist
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment