0
Why cant i get the buttons?
import tkinter as tk from tkinter import filedialog, Text import os root = tk.Tk() Canvas = tk.Canvas(root,height = 700, width = 700, bg ="green") Canvas.pack() Button= tk.Button(root,text="Button") Button.pack()
1 Réponse
+ 2
Python in SoloLearn doesn't allow GUI!
So it will show an error! So tkinter won't work!
Extra info:
Before using any external module you will have to first install it then you can use it!
This code tells you how to install modules!
https://code.sololearn.com/cy3t2a5Uz61b/?ref=app