Skip to main content

A package to easily create and manage windows in Python

Project description

SimpleWindow

A package to easily create and manage windows in Python

Installation

pip install SimpleWindow

Usage

import SimpleWindow
import numpy as np

# Initialize the window, the window wont be shown until Show() is called
SimpleWindow.Initialize(Name="Example Window",
                        Size=(1280, 720),
                        Position=(100, 100), 
                        TitleBarColor=(0, 0, 0),
                        Resizable=True,
                        TopMost=False,
                        Foreground=True,
                        Minimized=False,
                        Undestroyable=False,
                        Icon="",
                        NoWarnings=False)

# Create an image
Image = np.zeros((720, 1280, 3), dtype=np.uint8)

while True:
    # The window will be shown now since its the first call of Show() since the Initialize() call
    SimpleWindow.Show(Name="Example Window", Frame=Image)

    # Get the window open state
    WindowIsOpen = SimpleWindow.GetOpen(Name="Example Window")

    # If the value is False then the window was destroyed by the code, if the value is None then the window got destroyed by the user
    if WindowIsOpen == False or WindowIsOpen == None:
        break

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplewindow-0.22.tar.gz (44.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simplewindow-0.22-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file simplewindow-0.22.tar.gz.

File metadata

  • Download URL: simplewindow-0.22.tar.gz
  • Upload date:
  • Size: 44.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for simplewindow-0.22.tar.gz
Algorithm Hash digest
SHA256 1d3199cef9ca6afc6533cd86aec49bd079e863324f097b41ac2cfb959de21300
MD5 a7fd164c9e0a706f1ec7ba56b06b185c
BLAKE2b-256 6190fd602fb5a9fd58796df8f79f9bfb09f9ce06c27a7ed6a911838a439856eb

See more details on using hashes here.

File details

Details for the file simplewindow-0.22-py3-none-any.whl.

File metadata

  • Download URL: simplewindow-0.22-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for simplewindow-0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 86814123f8ea9290df332b40779458a624f12d7a4c02e0cadc014bf785c387ac
MD5 c9242418195705437300558b3da7373c
BLAKE2b-256 7281e8b3cfdb99d2d8f8a6379399dd1498fde83a9f2d8644b48d251c08f48890

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page