Skip to content

Application spawning parent tk window even though layout has a top level. #21

@sethstenzel

Description

@sethstenzel

When running the application, a smaller tk parent window is created.

Steps to reproduce the behavior:

  1. Start new project
  2. Save the layout
  3. Run app loading layout
  4. See the error

It is not using the parent object, which is set, but instead spawning a new tk parent and shouldn't be.
Example Image

  • OS: Windows
  • formation Version 0.6.1
  • Python version: 3.11.0
  • tk version: 8.6

app.py

from formation import AppBuilder

app = AppBuilder(path="test.xml")
app.mainloop()

test.xml

<?xml version='1.0' encoding='utf-8'?>
<tkinter.Toplevel xmlns:attr="http://www.hoversetformationstudio.com/styles/" xmlns:layout="http://www.hoversetformationstudio.com/layouts/" name="toplevel_1" attr:layout="place" layout:width="1170" layout:height="858" layout:x="30" layout:y="30"><meth name="title"><arg value="title" /></meth><meth name="geometry"><arg value="1170x825+0+0" /></meth><meta major="6" minor="1" name="version" /></tkinter.Toplevel>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions