Browse Source

changed launch setup

master
Maxim Stewart 1 year ago
parent
commit
3f7bab4568
  1. BIN
      bin/gwinwrap-0-0-1-x64.deb
  2. 9
      src/GWinWrap/GWinWrap.desktop
  3. 12
      src/GWinWrap/GWinWrap.sh
  4. 10
      src/GWinWrap/__init__.py
  5. 9
      src/GWinWrap/__main__.py
  6. 2
      src/gwinwrap_exec_bin.cpp

BIN
bin/gwinwrap-0-0-1-x64.deb

9
src/GWinWrap/GWinWrap.desktop

@ -0,0 +1,9 @@
[Desktop Entry]
Encoding=UTF-8
Name=GWinWrap
Comment=Glade gui with python controls for XWinWrap
Exec=gwinwrap
Icon=/opt/GWinWrap/resources/icons/GWinWrap.png
Terminal=false
Type=Application
Categories=Accessories;System;Settings;

12
src/GWinWrap/GWinWrap.sh

@ -1,12 +0,0 @@
#!/bin/bash
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
# GTK_DEBUG=interactive python3 ./GWinWrap.py
python3 ./GWinWrap.py
}
main [email protected];

10
src/GWinWrap/GWinWrap.py → src/GWinWrap/__init__.py

@ -30,7 +30,7 @@ class Main:
# Gets the methods from the classes and sets to handler.
# Then, builder connects to any signals it needs.
classes = [CrossClassSignals(settings)]
handlers = {}
for c in classes:
methods = inspect.getmembers(c, predicate=inspect.ismethod)
@ -39,11 +39,3 @@ class Main:
builder.connect_signals(handlers)
window = settings.createWindow()
window.show()
if __name__ == "__main__":
try:
main = Main()
gtk.main()
except Exception as e:
print(e)

9
src/GWinWrap/__main__.py

@ -0,0 +1,9 @@
from __init__ import Main, gtk
if __name__ == "__main__":
try:
main = Main()
gtk.main()
except Exception as e:
print(e)

2
src/gwinwrap_exec_bin.cpp

@ -5,6 +5,6 @@ using namespace std;
int main() {
chdir("/opt/GWinWrap/");
system("python3 GWinWrap.py");
system("python3 .");
return 0;
}
Loading…
Cancel
Save