updated grid logic, cleaned up configs
This commit is contained in:
parent
255295c80b
commit
764a74d0e6
|
@ -50,6 +50,8 @@ class Controller(ControllerData):
|
|||
for child in children:
|
||||
grid.remove(child)
|
||||
|
||||
row = 0
|
||||
col = 0
|
||||
for item in group_items:
|
||||
title = item["title"]
|
||||
if not item["exec"] in ("", None):
|
||||
|
@ -75,7 +77,14 @@ class Controller(ControllerData):
|
|||
button.set_always_show_image(True)
|
||||
|
||||
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):
|
||||
command = _command.split("%")[0]
|
||||
|
|
|
@ -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 "$@";
|
Loading…
Reference in New Issue