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

Dynamic screen size and positioning #7

Open
akshgpt7 opened this issue Jan 4, 2020 · 5 comments
Open

Dynamic screen size and positioning #7

akshgpt7 opened this issue Jan 4, 2020 · 5 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed tkinter

Comments

@akshgpt7
Copy link
Owner

akshgpt7 commented Jan 4, 2020

The current screen size and positioning (and sizing) of all widgets is static. Make them dynamic so as to adapt to various screen sizes and prevent overlapping.

  • Use pyautogui to get the user's screen size, and dynamically position elements.
  • Set the size of all elements using the appropriate ratio.
  • Can use tkinter grid for layout.
@koolgax99
Copy link

@akshgpt7 can you please assign this issue to me

@akshgpt7
Copy link
Owner Author

akshgpt7 commented Dec 9, 2020

Sure, go for it @koolgax99.
Feel free to ask if you don't understand something.

@koolgax99
Copy link

thankyou

@koolgax99
Copy link

sir can you guide me as in how to change the size dynamically. I mean what size to use for which screen size

@akshgpt7
Copy link
Owner Author

@koolgax99, Firstly, no need to use sir/mam in an open source community, everyone's equal :)
Coming to your question, I think a good way to go about it would be to get the user's screen height and width using pyautogui, and using that, have a certain scaling factor to set: 1) The sizes of elements, 2) The positioning of elements. For example, using a scaling factor of 0.5 * screen_height for height of elements (or whatever looks right).
Also, I've not really used tkinter grid for positioning, but I think that might make your work easier in some places, so do check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed tkinter
Projects
None yet
Development

No branches or pull requests

2 participants