Skip to Content
Programmieren von Kopf bis Fuß
book

Programmieren von Kopf bis Fuß

by David Griffiths, Paul Barry
April 2010
Beginner to intermediate
440 pages
9h 7m
German
O'Reilly Verlag
Content preview from Programmieren von Kopf bis Fuß

Die Klasse MixerPanel hat große Ähnlichkeit mit der Funktion gui_erstellen()

Wandeln Sie die ursprüngliche laut_ändern()-Funktion in eine Methode um und fügen sie dann der Klasse hinzu, erhalten Sie Code, der der ursprünglichen Funktion gui_erstellen() ziemlich ähnlich ist:

image with no caption

Die neue Klasse MixerPanel kann also vollständig den Code in der Datei mixer_panel.py ersetzen (da gui_erstellen() nicht mehr benötigt wird).

Aber bevor Sie das tun, müssen Sie erst noch etwas zusätzlichen Code schreiben. Der Klasse muss gesagt werden, was zu tun ist, wenn ein neues MixerPanel erstellt wird. Die Klasse braucht eine Initialisierungsmethode, die weiß, wie man Instanzen ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Softwareentwicklung von Kopf bis Fuß

Softwareentwicklung von Kopf bis Fuß

Dan Pilone, Russ Miles
Netzwerke von Kopf bis Fuß

Netzwerke von Kopf bis Fuß

Al Anderson, Ryan Benedetti

Publisher Resources

ISBN: 9783868993127Purchase bookSupplemental Content