GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — show() method - position and size of the displayed window · Issue #18 · webui-dev/python-webui

show() method - position and size of the displayed window #18

New issue
Copy link
New issue
Copy link
Open
Open
show() method - position and size of the displayed window#18
Copy link

Description

@JerryFox
JerryFox
opened on Dec 9, 2023
Issue body actions

How is it with the size and position of the displayed window?

my experiences:

  • myWindow.show(html) - html code in a variable

The first call of the show() method - the window is displayed with some initial size (relatively small) at some position. When I resize or move the window and then close it, the next call of the show() method displays the window with the last size at the last position. It is a GOOD behavior in my opinion.

  • myWindow.show("file.html") - html code in a file

The first call of the show() method displays somewhere a window bigger of the one in the first case. After resizing (or moving) and closing the window the next call of the show() method again displays a window of the initial size at the initial position independently of the former moving or resizing. It is a BAD behavior in my opinion.

What about it?

Thanks for your answer!

Jaroslav

Activity

  1. andrewteta commented on Jan 16, 2024

    @andrewteta
    andrewteta
    on Jan 16, 2024
    More actions

    have you tried setting window.set_size(width, height) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.