Another container is a Column, another a Frame, and the Tab is the same. It's fine to keep it in mind, but right now, we're at an earlier part of the process, getting the general layouts working. Let's put "making things pretty" as a later step. i guess ill try the tabsĪbout the buttons. It didn't work :(, didn't really change anything. Now it's a matter of how you arrange them. You've done a lot of the hard work of the individual settings. Changing a window's interior is generally not a huge thing. Thankfully, with PySimpleGUI, adding tabs is not difficult.
Tkinter winfo screen width series#
One idea.your entire app could be a series of tabs with the words puzzle being the first, the sections on the left part of your screen each tabs, etc. The first versions often tell you what the problems are, not what the solutions are. You try something, refine it, maybe throw parts out, keep others. That's especially true for user interfaces. One thing I learned from working with artists for the first time is that "Design is an iterative process". I will test it later and ill notify u if it works, thanks! Scaling = scaling_old * min( width / my_width, height / my_height) my_scaling = 1.334646962233169 # call get_scaling() my_width, my_height = 1536, 864 # call sg.Window.get_screen_size() # Get the number for new screen scaling_old = get_scaling() Return scaling # Find the number in original screen when GUI designed.
![tkinter winfo screen width tkinter winfo screen width](https://i.stack.imgur.com/ydVzg.png)
# called before window created root = sg.
Tkinter winfo screen width code#
Import PySimpleGUI as sg # - Add following code block into your script - def get_scaling(): is there any way i can resize the elements to fit the scren size? Screenshot, Sketch, or Drawing
![tkinter winfo screen width tkinter winfo screen width](https://i.stack.imgur.com/HxaYw.jpg)
the thing is i don't want to add a scroll bar. I have a window that fits on my screen with all the elements because i have a big screen, and when i try it on my laptop half of the window cuts off at the bottom. Your problem may have already been fixed but not released Tried using the PySimpleGUI.py file on GitHub.Searched through Issues (open and closed) to see if already reported.Run your program outside of your debugger (from a command line).For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi).If not tkinter - looked for Demo Programs for specific port.Looked for Demo Programs that are similar to your goal.Please check those you've done by changing - to. Windows PySimpleGUI Port (tkinter, Qt, Wx, Web) Type of Issue (Enhancement, Error, Bug, Question)