-rw-r--r-- | examples/python/simple.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/simple.py b/examples/python/simple.py index 0ac9bd2..44fcae7 100644 --- a/examples/python/simple.py +++ b/examples/python/simple.py | |||
@@ -1,49 +1,49 @@ | |||
1 | #!pyquicklauncher | 1 | #!/usr/bin/env pyquicklauncher |
2 | # -*- coding: iso8859-15 -*- | 2 | # -*- coding: iso8859-15 -*- |
3 | #--------------------------------------------------------------------------------------------------# | 3 | #--------------------------------------------------------------------------------------------------# |
4 | """ =. This file is part of the PyQt examples collection | 4 | """ =. This file is part of the PyQt examples collection |
5 | .=l. Copyright (C) 2004 Michael Lauer <mickey@Vanille.de> | 5 | .=l. Copyright (C) 2004 Michael Lauer <mickey@Vanille.de> |
6 | .>+-= | 6 | .>+-= |
7 | _;:, .> :=|. This program is free software; you can | 7 | _;:, .> :=|. This program is free software; you can |
8 | .> <`_, > . <= redistribute it and/or modify it under | 8 | .> <`_, > . <= redistribute it and/or modify it under |
9 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 9 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
10 | .="- .-=="i, .._ License as published by the Free Software | 10 | .="- .-=="i, .._ License as published by the Free Software |
11 | - . .-<_> .<> Foundation; either version 2 of the License, | 11 | - . .-<_> .<> Foundation; either version 2 of the License, |
12 | ._= =} : or (at your option) any later version. | 12 | ._= =} : or (at your option) any later version. |
13 | .%`+i> _;_. | 13 | .%`+i> _;_. |
14 | .i_,=:_. -<s. This program is distributed in the hope that | 14 | .i_,=:_. -<s. This program is distributed in the hope that |
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
16 | : .. .:, . . . without even the implied warranty of | 16 | : .. .:, . . . without even the implied warranty of |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
19 | ..}^=.= = ; General Public License for more | 19 | ..}^=.= = ; General Public License for more |
20 | ++= -. .` .: details. | 20 | ++= -. .` .: details. |
21 | : = ...= . :.=- | 21 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the | 22 | -. .:....=;==+<; You should have received a copy of the |
23 | -_. . . )=. = GNU General Public License along with | 23 | -_. . . )=. = GNU General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | """ | 28 | """ |
29 | #--------------------------------------------------------------------------------------------------# | 29 | #--------------------------------------------------------------------------------------------------# |
30 | 30 | ||
31 | #--------------------------------------------------------------------------------------------------# | 31 | #--------------------------------------------------------------------------------------------------# |
32 | __version__ = "1.0.0" | 32 | __version__ = "1.0.0" |
33 | __author__ = "Michael 'Mickey' Lauer <mickey@Vanille.de>" | 33 | __author__ = "Michael 'Mickey' Lauer <mickey@Vanille.de>" |
34 | __license__ = "GPL" | 34 | __license__ = "GPL" |
35 | #--------------------------------------------------------------------------------------------------# | 35 | #--------------------------------------------------------------------------------------------------# |
36 | 36 | ||
37 | import sys | 37 | import sys |
38 | from qt import * | 38 | from qt import * |
39 | from qtpe import * | 39 | from qtpe import * |
40 | 40 | ||
41 | #--------------------------------------------------------------------------------------------------# | 41 | #--------------------------------------------------------------------------------------------------# |
42 | class SimpleWidget( QWidget ): | 42 | class SimpleWidget( QWidget ): |
43 | """A simple main widget with a label and a push button.""" | 43 | """A simple main widget with a label and a push button.""" |
44 | 44 | ||
45 | def __init__( self, parent, name = "SimpleWidget" ): | 45 | def __init__( self, parent, name = "SimpleWidget" ): |
46 | """Construct me.""" | 46 | """Construct me.""" |
47 | QWidget.__init__( self, parent, name ) | 47 | QWidget.__init__( self, parent, name ) |
48 | 48 | ||
49 | # | 49 | # |