-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Containers (through context manager) now take parameters #340
- Loading branch information
1 parent
f53d2ba
commit 1dbe7e6
Showing
2 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import sys | ||
sys.path.append("../../") | ||
|
||
from appJar import gui | ||
|
||
with gui("KWARGS TEST", bg="green") as app: | ||
with app.tabbedFrame("nb1", bg="blue"): | ||
with app.tab("LabelFrame", bg="yellow"): | ||
with app.labelFrame("LabelFrame", bg="green", fg="blue"): | ||
app.label("YELLOW NOTE") | ||
with app.tab("ToggleFrame", bg="black", fg="white"): | ||
with app.toggleFrame("ToggleFrame", bg="pink", fg="red"): | ||
app.label("BLACK NOTE") | ||
with app.tab("PanedFrame", bg="orange"): | ||
app.label("ORANGE NOTE") | ||
with app.panedFrame("PanedFrame2", bg="orange", fg="white"): | ||
app.label("ORANGE NOTE2") | ||
with app.panedFrame("PanedFrame3", bg="green", fg="blue"): | ||
app.label("ORANGE NOTE3") | ||
with app.tab("PagedWindow", bg="purple"): | ||
with app.pagedWindow("PagedWindow", bg="red", fg="yellow"): | ||
with app.page(bg="white", fg="pink"): | ||
app.label("PINK ON WHITE") | ||
with app.page(bg="black", fg="red"): | ||
app.label("RED ON BLACK") | ||
with app.page(): | ||
app.label("PURPLE3 NOTE") | ||
with app.tab("Frame", bg="red"): | ||
with app.frame("Frame", bg="purple", fg="white"): | ||
app.label("RED NOTE") | ||
with app.tab("ScrollPane", bg="grey"): | ||
with app.scrollPane("ScrollPane", sticky="SE", bg="pink"): | ||
app.label("GREY NOTE", bg="orange") | ||
with app.tab("NoteBook", bg="yellow"): | ||
with app.notebook("nb1"): | ||
with app.note("note1", bg="green"): | ||
app.label("N_GREEN NOTE") | ||
with app.note("note2", bg="pink"): | ||
app.label("N_PINK NOTE2") | ||
with app.note("note3", bg="blue"): | ||
app.label("N_BLUE NOTE3") |