Easy-to-use and cross-platform GUI library for making functional GUI apps
Project description
FlapGUI
Flap (Framework for making Lightweight and Automatic Programs) is a GUI framework for creating cross-platform GUI applications easily using Tkinter.
Purpose
FlapGUI is designed to make writing GUI applications as simple as possible, eliminating the learning curve for making functional programs.
Most GUI frameworks (tkinter, qt, gtk, etc.) have a steep learning curve, which FlapGUI intends to fix.
Flap is in beta and is not complete. It is subject to rapid and signigicant change at the moment.
Module Functions
-
window(title="flapWindow", width=250, height=250)
- Creates a window.
-
subWindow(root, title=None, width=250, height=250, close_parent=True)
- Creates a sub-window.
-
disableElement(element)
- Makes the specified element greyed out/disabled.
-
createCheckbox(root, label, isChecked=False, fg="black")
- Creates a checkbox widget.
-
getCheckboxState(checkbox)
- Returns the state of the checkbox widget.
-
changeWidgetColor(widget, background_color, text_color=None)
- Changes the color of the specified widget.
-
changeAccentColor(root, background_color, text_color=None)
- Changes the accent color of the root window and its child widgets.
-
createFrame(root)
- Creates a frame widget.
-
lockWindowPos(root)
- Locks the window at its current position.
-
unlockWindowPos(root)
- Allows the window to be moved.
-
createHyperlinkText(root, label_text, url)
- Creates a label with a hyperlink.
-
changeTitle(root, new_title)
- Changes the title of the root window.
-
autoScaleResolution(window)
- Automatically scales the window resolution based on widget sizes.
-
scaleResolution(window, width, height)
- Scales the window resolution to the specified width and height.
-
maximiseWindow(window)
- Maximizes the window to full screen.
-
addText(root, text)
- Adds a text label to the root window.
-
textEntry(width, height, fg=None, bg=None)
- Creates a text entry widget.
-
framedTextEntry(window, width=40, bg="#FFFFFF", fg="#000000")
- Creates a framed text entry widget.
-
lockText(text)
- Disables editing of the text widget.
-
unlockText(text)
- Enables editing of the text widget.
-
makeTabbable(text)
- Makes the text widget navigable using the Tab key.
-
makeUnclosable(root)
- Prevents the root window from being closed.
-
makeReclosable(root)
- Allows the root window to be closed.
-
menuBar(root)
- Creates a menu bar widget.
-
addCascade(menuBar, label)
- Adds a cascade menu to the menu bar.
-
addCommand(cascade, label, command=None, accelerator=None)
- Adds a command to the cascade menu.
-
keyBind(root, binding, command=None)
- Binds a key press event to a command.
-
addText(root, label_text)
- Adds a text label to the root window.
-
addFrameScrollbar(frame)
- Adds a scrollbar to a frame with a canvas.
-
messageBox(title, message)
- Displays a message box with the specified title and message.
-
addScrollbar(root, text)
- Adds a scrollbar to a text widget.
-
selectAll(text, event=None)
- Selects all text in the text widget.
-
disallowEnter(text)
- Disallows the newline character in the text widget.
-
setText(text_widget, text)
- Sets the text content of the text widget.
-
getText(text_widget)
- Retrieves the text content of the text widget.
-
createButton(root, label, command=None)
- Creates a button widget.
-
appendText(text_widget, string)
- Appends a string to the text widget.
-
createGrid(root)
- Creates a grid widget
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.