Issue
I'm trying to create a button on tkinter that opens a matplotlib button but i don't know how to do do that.
Solution
I dont know what you want but you want to put the the matplotlib graph in a def, and make the button for that command so like
import tkinter as tk
from tkinter import Button
root = tk.Tk()
root.geometry('300x400')
def mathplotlibgraph():
mathplotlibcode
b1 = Button(root, text = 'Mathplotlib', command = mathplotlibgraph)
b1.pack()
Answered By - Dodu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.