Open redoine32 opened 5 months ago
You have your widgets width set to constant values, if you want to fit them like in 2nd picture, you need to implement something so it scales with the window size.
You have your widgets width set to constant values, if you want to fit them like in 2nd picture, you need to implement something so it scales with the window size.
Thanks a lot mate02102003 for the reply now the widgets scales perfectly after removing the width Values but the background image still have the same problem
Thanks a lot mate02102003 for the reply now the widgets scales perfectly after removing the width Values but the background image still have the same problem
Just a question do you change your resoulution after you started the app?
The PhotoImage has an option size and also accepts relative path, so inted of this:
bg_image = Image.open(current_path + "/test_images/bg_gradient.jpg")
bg_image = bg_image.resize((root.winfo_screenwidth(), root.winfo_screenheight()), Image.LANCZOS)
bg_image = ImageTk.PhotoImage(bg_image)
You can do this:
bg_image = ImageTk.PhotoImage("/test_images/bg_gradient.jpg", (root.winfo_screenwidth(), root.winfo_screenheight())
But you migth have to divide the width and height by 2, in my project that I am working on it gave me correct size like that.
Also next time open a Discussion not an Issue about this
PS: You can also have python syntax highligthing in the code snippet by doing this:
```python
code...
You can replace python with any other programming language
thnaks for the replay Mate still have the problem here is a screenshot so can understand the situation better note that this one is opend zith the resolution set at 720p but on 1080 works fine
thnaks for the replay Mate still have the problem here is a screenshot so can understand the situation better note that this one is opend zith the resolution set at 720p but on 1080 works fine
I see what the problem is, you put both selction_frame
and result_frame
on row=0, you have to put selection_frame
on row=0 and result_frame
row=1.
Hi Devs! Iam very new to coding and i have a problem with my UI layout changes on defrent screen sizes even when i change the resolution of my screen here is my code i hope some one can help me with this Problem thanks in advance
here is the problem that i have the widget doesn’t fit on the screen when viewing it on a smaller screen resolution it should be like this on every screen resolution