Sandbox:Piffpoof2b

Purpose
To cover the moderate level PySide interactions there is a sample program. Actually "the program" is a large class definition, the definition of a PySide GUI class. It has over 150 lines of code (including comments) and so is not small. There is no functional purpose to the Class or it's behaviour, the sole purpose is to demonstrate possible GUI actions and present some code that does that so anyone who needs the code can copy out that section. modify and adapt it to their own purposes.

The Class definition and the small number of lines of code that invoke are described in the order the occur in the file. This order is based on the screen layout which is rather arbitrary and solely intended to demonstrate features. This is the GUI screen the PySide CLass generates:

Most of the remainder of this page will describe the contents of the Class definition which appears at the end of this section.

Import Statement
blah blah blah
 * create window with 4 widgets:
 * label
 * button to toggle visibility of label
 * QTextEdit with contextual menu
 * clear
 * make upper case
 * replace vowels with '*'
 * popup menu to put different pieces of text in QTextEdit

Misc Additional Topics

 * set window maximise/normal/minimise
 * set window to top
 * geometry
 * frame