Python Applications Python GUI Programming

Python Applications

Python GUI Programming

Jung, Ki-Hyun

Department of Cyber Security

khanny.jung@

1

-

GUI - - PyCharm - Eclipse, Visual Studio

- - pip3 install .whl (/scripts )

> -

2

GUI

turtle tkinter pygame

- PyQT

- - QtDesigner pyGTK wxPython - wxFormBuilder

1> - 2> - -

3

tkinter GUI

tkinter - tkinter(tkinterface) Tcl/Tk GUI - Tcl(Tool Command Language) , Tk GUL

> 2.* - Tkinter (not tkinter) - print " " print ` ' (not print() ) - raw_input() (not input())

from tkinter import *

window = Tk() label = Label(window, text="Hello, World") label.pack()

window.mainloop()

# # # #

4

tkinter GUI

from tkinter import *

class BasicProgram: def __init__(self): window = Tk() label = Label(window, text="Hello, World") label.pack() window.mainloop()

BasicProgram() # __init__

from tkinter import *

class BasicProgram: def __init__(self): window = Tk() window.title("My First GUI") label = Label(window, text="Hello, World") label.pack() window.mainloop()

if __name__ == '__main__': # BasicProgram() # __init__

5

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download