Why cant i get the buttons? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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()

25th Aug 2020, 9:38 PM
Jamari McFarlane
Jamari McFarlane - avatar
1 Answer
+ 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
26th Aug 2020, 4:09 AM
Namit Jain
Namit Jain - avatar