question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with resizing

See original GitHub issue

Hello

First of i want to say thank you for this great library!

I am currently using the library to write an application where i know the screen size so I am using .place for placement and resizing. It is an application for a touch screen so i need the widgets to be a bit bigger than they would be on a computer screen.

Everything has been going well until I attempted to uppgrade to 1.0 in order to use some of the new widgets, more specifically the ON/OFF toggle widget. When trying to place and resize using:

#ON/OFF switch
label = Label(text="Include row numbers").place(x=x_placement, y=170)
Checkbutton(bootstyle="success-round-toggle").place(x=x_placement, y=190, width = 200, height = 80)

I get the following result bugg

If i change the code to

        #ON/OFF switch
        label = Label(text="Include row numbers").place(x=x_placement, y=180)
        Checkbutton(bootstyle="success-round-toggle").place(x=x_placement, y=190, width = 200, height = 80)

I get: bugg2

So seems like the actual bounding box(not sure about the terminology) is resizing but not the widget.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ForeverLebowskicommented, Dec 5, 2021

Thank you! The scaling was exactly what I wanted(saved me a lot of resizing of other widgets).

However I did have some interesting behavior with the enable_high_dpi_awareness(). I am running Windows and I tried to follow the docs and place the call before the root object like the docs said but did this not work. However when I placed the call after creating the root object per the instructions on Linux it worked perfectly.

0reactions
israel-dryercommented, Dec 20, 2021

Closing this issue, as I created workarounds in Window for scaling and hdpi.

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Fixes When You Can't Resize Window in Windows 11 and 10
Try resizing the window after each app is closed so you know which one is causing the issue.
Read more >
Issue resizing images - Microsoft Community Hub
I am having trouble resizing images in word, when I click on the resize boxes - the picture inverts and goes to a...
Read more >
Resizing of windows is not reliable - Visual Studio Feedback
This issue is read only, because it has been in the Closed - Fixed state for over 90 days ... Workaround: undock the...
Read more >
Resizing Issue · Issue #175 · romkatv/powerlevel10k - GitHub
I'm getting strange behavior when I resize my terminal. Is this expected? My p10k config is here.
Read more >
how do i fix this resizing issue with my container and div boxes
Please refer to the video on what my issue is. I want the div and header to resize proportionally when I make it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found