+ 1
What is the major difference between the GUI of c++ and GUI of python? Is there any difference?
4 Antworten
+ 3
Ohhh.. Thanks Jenn, But I really do not under this tkinter. I'm new here
+ 2
Python has an inbuilt GUI module called TKINTER.
C++ on the other hand has no inbuilt GUI, what you may regard as the GUI OF both is the black output screens of both. That's just a console that allows you to interact with python or c++ and see your output as well as give your input. But showing you what i mean i used pythons inbuilt GUI module/class/functions to make this below ::
import tkinter #this is the python module responsible for gui development
new_Window = tkinter.Tk() #call creates a new window
frame = tkinter.Frame(window)
frame.pack()
button = tkinter.Button(frame, text = 'Hello-ClickMe')
button.pack
label = tkinter.Label(frame, textvariable = 'hello My name is JENN')
label.pack()
#start the machinery!
new_Window.mainloop()
+ 1
many popular c++ gui library have binding for python. qt, gtk, wx, .netframework. using c++ or python will produce same result. binding for java also available in python.
python itself is just a langguage same as c++, you should know the major difference between both langguage.