Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

PySide Newbie Tutorials: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
'''English''' [http://qt-devnet.developpez.com/tutoriels/pyside/simplissimus/#LII French] ''[qt-devnet.developpez.com]'' [[PySide-Newbie-Tutorials-Japanese|日本語]]
[[Category:LanguageBindings]]<br />[[Category:LanguageBindings::PySide]]<br />[[Category:LanguageBindings::PySide::Newbie Tutorials]]


=PySideSimplicissimus : 10 min newbie to newbie Tutorials=
'''English''' [&quot;French&amp;quot;:http://qt-devnet.developpez.com/tutoriels/pyside/simplissimus/#LII] [[PySide-Newbie-Tutorials-Japanese|日本語]]


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. The source code for all the programs in this package are deposited in a repository on '''github.com''' and available for free download, using '''git''' the <span class="caps">DVCS</span> program:<br />
= PySideSimplicissimus : 10 min newbie to newbie Tutorials =


* [[PySideSimplicissimus Module 1 Prerequisites|Prerequisites]]<br /> 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.
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. The source code for all the programs in this package are deposited in a repository on '''github.com''' and available for free download, using '''git''' the DVCS program:<br /><code> git clone https://github.com/OldAl/tuts4pyside<code><br />* [[PySideSimplicissimus_Module_1_Prerequisites | Prerequisites]]<br />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.<br />* [[PySideSimplicissimus_Module_2_CloseButton | Close ]]<br />Every main PySide program window can be resized, 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.<br />* [[PySideSimplicissimus_Module_3_AboutBox | About]]<br />The example of shows an '''about box''' with version of Qt, PySide, Python and type of platform. Useful for any program, large or small.<br />* [[PySideSimplicissimus_Module_4_ShowLicence | Show Licence ]]<br />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. This snippet shows how to display '''GPL''' or '''CCPL''' licence text simply.<br />* [[PySideSimplicissimus_Module_5_Combine | Combine]]<br />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.<br />* [[PySideSimplicissimus_Module_6_AlternativeCombine | Alternative Combine]]<br />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 &quot;Combine&amp;quot; program and avoid multiple inheritance. Good to know about it. It will probably take little less than 10 minutes.<br />* [[PySideSimplicissimus_Module_7_CombineAllIn1 | Combine All in One]]<br />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<br />* [[PySide_Engineering_Application | Practical (Almost) Engineering Application]]<br />The promises have to be kept (I could never be a politician) - 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 :)
* [[PySideSimplicissimus Module 2 CloseButton|Close]]<br /> Every main PySide program window can be resized, 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]]<br /> 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]]<br /> It is obligatory for programs licenced under '''<span class="caps">GPL</span>''' (General Public Licence) to enable users to display and read '''<span class="caps">GPL</span>.''' This '''<span class="caps">GPL</span>''' requirement is often overlooked. This snippet shows how to display '''<span class="caps">GPL</span>''' or '''<span class="caps">CCPL</span>''' licence text simply.
* [[PySideSimplicissimus Module 5 Combine|Combine]]<br /> 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]]<br /> 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]]<br /> 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]]<br /> The promises have to be kept (I could never be a politician) 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 <span class="smiley">:)</span>


'''Enjoy!'''<br />[[PySide Tutorials|Return to Tutorials]]
'''Enjoy!'''
 
===Categories:===
 
* [[:Category:LanguageBindings|LanguageBindings]]
** [[:Category:LanguageBindings::PySide|PySide]]
* [[:Category:LanguageBindings::PySide::Newbie-Tutorials|Newbie Tutorials]]

Revision as of 14:12, 23 February 2015



English ["French&quot;:http://qt-devnet.developpez.com/tutoriels/pyside/simplissimus/#LII] 日本語

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. The source code for all the programs in this package are deposited in a repository on github.com and available for free download, using git the DVCS program:
git clone https://github.com/OldAl/tuts4pyside
* 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.
* Close
Every main PySide program window can be resized, 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.
* 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.
* 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. This snippet shows how to display GPL or CCPL licence text simply.
* 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.
* 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&quot; program and avoid multiple inheritance. Good to know about it. It will probably take little less than 10 minutes.
* 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
* Practical (Almost) Engineering Application
The promises have to be kept (I could never be a politician) - 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 :)

Enjoy!