Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 3 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,5 @@
# PyMenu-Framework
A Python (3.3+) based framework for creating simple and intuitive text-based menu interfaces. Includes support for text entry and dialog boxes with multiple options within them.
# PyMenu-Framework-Version2

---
A complete rewrite of the original code with a few unnecessary features removed and a few new features added such as the ability to add inputs to a menu and cycle between them with the up and down arrow keys.

![Image of PyMenu](https://github.com/Nytra/PyMenu-Framework/blob/master/images/main_menu.PNG)

PyMenu is capable of displaying many different buttons on the screen with each one linked to a specific function.

---

![Image of a Dialog Box](https://github.com/Nytra/PyMenu-Framework/blob/master/images/dialog.png)

PyMenu can display dialog boxes which contain text. The text will be automatically word wrapped to fit on the screen, no matter the screen dimensions.

---

![Image of Dialog Box Options](https://github.com/Nytra/PyMenu-Framework/blob/master/images/dialog_choices.png)

Dialog boxes are capable of containing many different options.

---

![Image of Dynamic Resizing](https://github.com/Nytra/PyMenu-Framework/blob/master/images/resize.png)

The framework will automatically detect when the terminal dimensions have changed and it will resize the interface accordingly.

---

##How To Use The PyMenu Framework

---

![Image of PyMenu Code](https://github.com/Nytra/PyMenu-Framework/blob/master/images/demo.png)

PyMenu is designed to be easily implemented alongside existing code. The possibilities are practically endless.

---

![Image of Dialog Code](https://github.com/Nytra/PyMenu-Framework/blob/master/images/demo3.png?raw=true)

This is an example of how a dialog box may be created with PyMenu.

Further example code can be found within the file called demo2.py. This is the file that I personally use for all of my testing so it is always up to date, but often very messy.

---

##Limitations

---

PyMenu currently does not support scrolling of any kind. So any text that exceeds the maximum overlay height will spill out onto the background. I am working on this.
![Example of Inputs](https://github.com/Nytra/PyMenu-Framework/blob/pymenu-version2/images/Login_Menu_Input.png?raw=true)
2 changes: 2 additions & 0 deletions colorama_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def draw(x, y, text):
print("\x1b[{};{}H".format(y, x) + text, end="") # Move the cursor to the given coordinates and then print the text
52 changes: 0 additions & 52 deletions demo.py

This file was deleted.

260 changes: 0 additions & 260 deletions demo2.py

This file was deleted.

16 changes: 0 additions & 16 deletions demo3.py

This file was deleted.

Binary file added images/Login_Menu_Input.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading