User Tools

Site Tools


tinypy:gui

This is an old revision of the document!


GUI Class

The GUI class enables you to create dialog and other UI related operations. This page will assume you created an instance using gui=Gui()

gui.displayError(str type,str message)

Popup an error message dialog. Type and message are strings, you can put whetever you want.

gui.displayError("File error","This file does not exist")

gui.displayInfo(str type,str message)

Popup an info message dialog. Type and message are strings, you can put whetever you want.

gui.displayInfo("Encoding","Encoding done")

Selecting files and folders

gui.dirSelect(str title)

Open the file selector to select a folder. The selected path is returned. Title is the title of the file selector.

 folder=gui.dirSelect("Select the source folder")

gui.fileReadSelect(str title)

Open the file selector to open a file in read mode.

gui.fileWriteSelect(str title)

Open the file selector to open a file in write mode. If the file already exists, you'll be prompted to overwrite it.


Go back to tinypy

tinypy/gui.1367051112.txt.gz · Last modified: 2013/04/27 10:25 by fx