GithubHelp home page GithubHelp logo

Comments (4)

tokyo4j avatar tokyo4j commented on July 2, 2024 1

I installed Thonny now and could reproduce it. So it's not specific to Raspberry Pi.

EDIT:
The cause is that Thonny first creates a window with width & height of 1, maximizes it, then map it.
When it maximizes, width & height of view->natural_geometry are set to 1. Then when the user unmaximizes it, labwc tries to restore the view->natural_geometry, but it fails as its width & height are smaller than LAB_MIN_VIEW_*.

Here's the simplest repro:

import tkinter as tk

root = tk.Tk()
root.geometry(root.wm_geometry()) # wm_geometry() returns "1x1"
root.attributes("-zoomed", True)
root.mainloop()

from labwc.

cillian64 avatar cillian64 commented on July 2, 2024

I've just filed #1922 which is probably not the same as this but might be related. Could you run labwc with the -d flag and capture stdout/stderr and see if there are any complaints about client (%s) did not respond to configure request or window geometry for client (%s) appears to be incorrect - ignoring (or anything else relevant)?

from labwc.

lurch avatar lurch commented on July 2, 2024

I can confirm that if I run the tkinter code provided by @tokyo4j and then "unmaximise" the window, that exhibits the same problematic behaviour that I'm seeing with Thonny. So pinging @aivarannamaa in case this needs fixes from the Thonny-side in addition to the labwc-side.

from labwc.

Consolatis avatar Consolatis commented on July 2, 2024

Should be fixed on latest master, labwc now prevents storing a geometry smaller than what is required to render minimal server decorations (104 x 60). If the application provided value is smaller, labwc will use a fallback size of 640x480 instead.

Thanks @tokyo4j for investigating and fixing!

from labwc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.