-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kobsel
committed
Jan 10, 2025
1 parent
94dc2a1
commit 8b1049f
Showing
3 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from tkinter import Canvas | ||
import tkinter as tk | ||
from matplotlib.backends.backend_tkagg import NavigationToolbar2Tk | ||
|
||
|
||
class Toolbar(): | ||
def __init__(self, parent,): | ||
self.parent = parent | ||
|
||
|
||
toolbar_frame = tk.Frame(parent) | ||
toolbar_frame.config(bg="white") | ||
toolbar_frame.grid(row=0, column=0, sticky="new") # Use grid for the frame | ||
toolbar = NavigationToolbar2Tk(self.parent.graph.canvas, toolbar_frame) | ||
#toolbar.config(bg="white")# Pack inside the frame | ||
toolbar.update() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters