An open API service indexing awesome lists of open source software.

https://github.com/michas404/pyimgui-example

A example showing how to create GUI elements using PyImGui, integrated with GLFW
https://github.com/michas404/pyimgui-example

glfw imgui imgui-glfw imgui-menu opengl pyimgui python-gui

Last synced: about 1 month ago
JSON representation

A example showing how to create GUI elements using PyImGui, integrated with GLFW

Awesome Lists containing this project

README

        

# PyImGui Example
(pyimgui-example)

A simple example demonstrating PyImGui with GLFW, including multiple windows, tabs, and interactive controls.

![Example](https://s6.gifyu.com/images/bpcqf.gif)

## Includes
- **Main Window with Tabs**
- Tab 1: Window controls, checkboxes, and text inputs
- Tab 2: Slider controls
- **Additional Windows**
- Second window with basic controls
- Third window with custom title bar
- **Interactive Elements**
- Checkboxes and sliders
- Text input fields
- External website links
- Custom window controls

## Installation

1. **Clone the repository**
```bash
git clone https://github.com/michas404/pyimgui-example.git
cd pyimgui-example
```

2. **Create virtual environment (recommended)**
```bash
python -m venv .venv
.venv\Scripts\activate
```

3. **Install dependencies**
```bash
pip install -r requirements.txt
```

## Usage
1. Ensure the font file is present:
```
pyimgui-example/
├── font/
│ └── ProggyClean.ttf
```

2. Run the application:
```bash
python main.py
```

## Controls
- Use tabs to switch between different control sets
- Click buttons to open/close additional windows
- Interact with sliders and checkboxes
- Use text inputs to enter custom values
- Click links to visit external websites

## Project Structure
```
pyimgui-example/
├── main.py # Main application code
├── requirements.txt # Project dependencies
├── README.md # This documentation
└── font/
└── ProggyClean.ttf # Required font file (also original font)
```

## Links
- [Documentation](https://docs.michas.lol/) (Coming soon)
- [Author's Website](https://me.michas.lol/)

## PyImGui Author
- [Release](https://github.com/pyimgui/pyimgui)
- [Profile](https://github.com/KinoxKlark)