Category:LanguageBindings::PySide::Newbie Tutorials: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:LanguageBindings::PySide]]
#REDIRECT [[PySide Newbie Tutorials]]
h1. PySideSimplicissimus : 10 min newbie to newbie Tutorials
 
Before one can start programming, there always are prerequisites. In the Prerequisites for your convenience provided are a few extant links to it as well as the Hello World example.
* [[PySideSimplicissimus_Module_1_Prerequisites | Prerequisites]]
In the following presented are several small examples. Unless otherwise noted, they should take about 10 mins. to complete, but it may take longer depending on various factors, including familiarity with PySide.
* [[PySideSimplicissimus_Module_2_CloseButton | Close ]]
Every main PySide program window can be resised, moved around and it can be closed by clicking the [x] symbol. Many programmers, however, prefer to also have a '''button that closes''' the program. The following code snippet shows how such close button can be implemented.
* [[PySideSimplicissimus_Module_3_AboutBox | About]]
The example of shows an '''about box''' with version of Qt, PySide, Python and type of platform. Useful for any program, large or small.
* [[PySideSimplicissimus_Module_4_ShowLicence | Show Licence ]]
It is obligatory for programs licenced under '''GPL''' (General Public Licence) to enable users to display and read '''GPL.''' This '''GPL''' requirement is often overlooked. The following snippet shows how to implement it simply.
* [[PySideSimplicissimus_Module_5_Combine | Combine]]
Next presented is the combination of the '''CloseButton''', '''AboutBox''' and '''Licence''', all in one program. The program is almost useful - for instance, I use it to check about box to see what version of Python, Qt and PySide I am using. For a newbie, the program may take a little longer than 10 minutes.
* [[PySideSimplicissimus_Module_6_AlternativeCombine | Alternative Combine]]
There are more ways to skin a cat than one - many examples of PySide and PyQt do not use the dual inheritance structure for their programs. This little tutorial gives an alternative method to structure the "Combine" program and avoid multiple inheritance. Good to know about it. It will probably take little less than 10 minutes.
* [[PySideSimplicissimus_Module_7_CombineAllIn1 | Combine All in One]]
This is the last variation of combine.py program, a version which merges ui_combine.py and combine.py into one program. It's merit is that the number of files is smaller and files with a warning not to alter them are no longer used. Next newbie to newbie tutorial will be a little more realistic - an engineering application
* [[PySide_Engineering_Application | Practical (Almost) Engineering Application]]
The promises have to be kept (I could never be a polititcian) - so here is an '''almost practical''' application to analysis of engineering structures, a familiar field of Civil and Aeronautical Engineering. It is a short and straight forward program, though it will take a longer than 10 minutes :)

Latest revision as of 12:59, 4 June 2016

This category currently contains no pages or media.