Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Mm2PL/mmw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mmw

What is it?

It is a library that generates simple pseudo-graphic windows.

How to use it?

Examples:

  1. Code:
import mmw
screen = mmw.Screen()
window = mmw.Window('Our window')
screen.add_window(window)  # Link the window to the screen
window.text = "Let's add some text"
window.buttons = ['And', 'some', 'buttons']
window.selectedButton = 0  # Select the first button
screen.clear()  # Screen.draw() doesn't clear the screen by itself
screen.draw()  # Draw the screen
screen.get_char()  # Wait until the user presses a key

Output:

+-----------Our window-----------+
|Let's add some text             |
|                                |
| [>And<]  [ some ]  [ buttons ] |
+--------------------------------+
  1. See mmwDemo.py

About

This is a library that allows you to easly create curses-like windows

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages