How create a window on python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How create a window on python

I need help to make this.

19th Dec 2016, 11:42 PM
Jonathan Alexander Patzan Pérez
Jonathan Alexander Patzan Pérez - avatar
6 Answers
+ 7
tkinter module. you can do anything with modules! except make my mother love me again...
20th Dec 2016, 4:56 AM
Ahri Fox
Ahri Fox - avatar
+ 6
With Tkinter Here The Code Below from tkinter import * root = Tk() #Main window for all widgets b1 = Button(root, text="Given is cool", bg='blue', fg='red') b1.pack(side=LEFT) root.title('Python is very simple') root.mainloop # Run the main event
23rd Dec 2016, 7:41 PM
Given
Given - avatar
+ 5
Kivy is a cross-platform python module who may be your solution : I found and quickly try it with the QPython app for androïd ( finally, it appear that QPython seems difficult or impossible to make app in python who run outside QPython, sadly, so I look toward java instead ^^ ), but it can be used differently ( search at kivy on play store and/or on internet ;) )...
21st Dec 2016, 12:29 AM
visph
visph - avatar
+ 1
Python does not have a built-in way to interact with window managers. You'll want to look into a QT library or one of the BeeWare projects.
19th Dec 2016, 11:56 PM
James Durand
James Durand - avatar
+ 1
I prefer to learn to program in Python on my Android tablet device. Unfortunately, the tkinter module doesn't run on Android. I fount out that there are other modules you can use to create a window on an Android device, but I haven't found time yet to experiment with that.
20th Dec 2016, 9:38 PM
Henk
Henk - avatar
+ 1
QT is quite good and worth learning, once you get your head around it and using qt designer you can put simple to complex interfaces together in a day. The are some such as Tkinter which is packaged with most python distributions. Most are cross platform. did not see a mention to Android but if so learn Java :)
21st Dec 2016, 10:45 AM
Elric Hindy
Elric Hindy - avatar