Beta Widgets


The following widgets are in beta - they're available and being used, they're just not quite finished...

Accessibility


A pop-up to configure GUI settings.

Accessibility

from appJar import gui

with gui("Demo Access") as app:
    app.button('Accessibility', app.showAccess, icon='ACCESS')

It allows you to configure:

Table


Used to create a spreadsheet like interface.
The Table has mouse interactivity, with mouse-over highlighting, and mouse-click highlighting.
It is possible to include buttons at the end of each row, and an additional row of entry boxes, with their own button.

Table

from appJar import gui

app = gui()
app.setFont(20)
app.addTable("g1",
    [["Name", "Age", "Gender"],
    ["Fred", 45, "Male"],
    ["Tina", 37, "Female"],
    ["Clive", 28, "Male"],
    ["Betty", 51, "Female"]])
app.go()

Add Tables

Connecting to Databases

Get Tables

Set Tables

To have the Press button on the entries row add a new row of data, try the following:

    def press(btn):
        if btn == "addRow":     # the button on the entries row
            data = app.getTableEntries("g1")
            app.addTableRow("g1", data)

Tree


Takes an arbitrary XML string, and converts it into a tree structure.

TreeWidget

from appJar import gui

app = gui()
app.addTree("t1",
            """<people>
            <person><name>Fred</name><age>45</age><gender>Male</gender></person>
            <person><name>Tina</name><age>37</age><gender>Female</gender></person>
            <person><name>CLive</name><age>28</age><gender>Male</gender></person>
            <person><name>Betty</name><age>51</age><gender>Female</gender></person>
            </people>""")
app.go()

Add Trees

Set Trees

Get Trees