Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatbility with small screen devices ie raspberry pi and pocketchip? #177

Open
molotof opened this issue Dec 22, 2017 · 2 comments
Open

Comments

@molotof
Copy link

molotof commented Dec 22, 2017

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 !!!!

@rich123
Copy link
Collaborator

rich123 commented Dec 23, 2017

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.

@molotof
Copy link
Author

molotof commented Dec 23, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants