Open molotof opened 6 years ago
On a fresh copy of gorilla (no saved preferences) then line 603 (in the pre160 branch, https://github.com/zdia/gorilla/blob/pre160/sources/gorilla.tcl#L603) sets the initial default size.
If you comment out this line (put a # mark in front) then the size of Gorilla's window will be set by the sizes of the items inside instead of forced to be 640x480.
But, the resulting size may still not be as small as 320x240 unless you choose very small fonts (which may become unreadable on that small a screen), turn off the gorilla logo, and maybe also tweak sizes of the entry widgets and other items. Many of those are set when they are initialized (search the gorilla.tcl file for the string "-width" and try shrinking some of the numbers that immediately follow "-width").
As for 'compiling', there is no compiling of Tcl code. If you have a working Tcl interpreter on your Rpi or the pocketchip, then just run the interpreter and give it a parameter of the gorilla.tcl file and it should start. You do need at least Tcl 8.5 however to run Gorilla.
Best of luck in shrinking things. It may take some experimenting to find sizes that work with those screen sizes.
Thank you rich123 for the feedback, I will get back to you with my results in here after get it tested and hopefully I can make it workable.
I have no clue about programming in TK, I wish you can do a resize of the application to run in screen resolution of 480x272 on the pocketchip which runs debian and also the 2.8 tft on the raspberry pi of 320x240.
If you can point me to the right lines of code to play around with or modify the code and I'll compile ?
Thank you for a great job on the application !!!!