updated grid logic, cleaned up configs

This commit is contained in:
itdominator 2023-02-21 16:40:47 -06:00
parent 255295c80b
commit 764a74d0e6
2 changed files with 27 additions and 1 deletions

View File

@ -50,6 +50,8 @@ class Controller(ControllerData):
for child in children: for child in children:
grid.remove(child) grid.remove(child)
row = 0
col = 0
for item in group_items: for item in group_items:
title = item["title"] title = item["title"]
if not item["exec"] in ("", None): if not item["exec"] in ("", None):
@ -75,7 +77,14 @@ class Controller(ControllerData):
button.set_always_show_image(True) button.set_always_show_image(True)
button.show_all() button.show_all()
grid.add(button) grid.attach(button, col, row, 1, 1)
col += 1
if col == 4:
col = 0
row += 1
# grid.add(button)
def test_exec(self, widget, _command): def test_exec(self, widget, _command):
command = _command.split("%")[0] command = _command.split("%")[0]

17
user_config/bin/utop Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# . CONFIG.sh
# 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() {
call_path=`pwd`
cd "${call_path}"
echo "Working Dir: " $(pwd)
python /opt/utop.zip "$@"
}
main "$@";