I have a bokeh code that I open it with the terminal typing:
bokeh serve --show graph2d.py
how can I make a tkinter open this bokeh.py(graph2d.py)? Please help with this, I dont find how to make it work. this is the tkinter:
import tkinter as tk
from tkinter import *
import graph2d
"""import tkinter as Tk
from tkinter import ttk"""
window = Tk()
window.title("Welcome to PokerScatter app")
"""
WINDOW_SIZE = "600x400"
root = tk.Tk()
root.geometry(WINDOW_SIZE)
"""
selected = IntVar()
rad1 = Radiobutton(window,text='2d Scatter', value=1, variable=selected, command=graph2d)
rad2 = Radiobutton(window,text='3d Scatter', value=2, variable=selected)
rad3 = Radiobutton(window,text='Pie Chart', value=3, variable=selected)
rad4 = Radiobutton(window,text='Histogram', value=4, variable=selected)
def clicked():
print("Processing")
btn = Button(window, text="Show", command=clicked)
rad1.grid(column=0, row=0)
rad2.grid(column=2, row=0)
rad3.grid(column=0, row=1)
rad4.grid(column=2, row=1)
btn.grid(column=6, row=0)
window.mainloop()