![]() Toolbar = NavigationToolbar2TkAgg(canvas, self)Ĭanvas._tkcanvas.pack(side=tk.TOP, fill=tk.BOTH, expand=True)Īni = animation. Label = tk.Label(self, text="Graph Page!", font=LARGE_FONT)Ĭanvas.get_tk_widget().pack(side=tk.BOTTOM, fill=tk.BOTH, expand=True) ![]() Label = tk.Label(self, text="Page One!!!", font=LARGE_FONT)īutton1 = ttk.Button(self, text="Back to Home",Ĭommand=lambda: controller.show_frame(StartPage)) There is no promiseĬommand=lambda: controller.show_frame(BTCe_Page))īutton2 = ttk.Button(self, text="Disagree", Label = tk.Label(self, text=("""ALPHA Bitcoin trading application basicly it is because of url I get the issue but looking for solution. Menubar.add_cascade(label="File", menu=filemenu)įid(row=0, column=0, sticky="nsew") No I dont face any problem to open this page for my code I don't need to use iFrames or Divs.both are working fine but if i use same page for both, second window open in first window as well but i try to keep first and open report in second page. Tk.Tk.wm_title(self, "Sea of BTC client")Ĭontainer.pack(side="top", fill="both", expand = True)Ĭid_columnconfigure(0, weight=1)įilemenu.add_command(label="Save settings", command = lambda: popupmsg("Not supported just yet!"))įilemenu.add_command(label="Exit", command=quit) Tk.Tk.iconbitmap(self, default="clienticon.ico") Title = "BTC-e BTCUSD Prices\nLast Price: " str(data) Sells = np.array(sells).astype("datetime64") # The code for changing pages was derived from: įrom _tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAggīuys = np.array(buys).astype("datetime64") The result now if you go to File and choose save settings: That's it, now when we want to have a popup message, say with a button, we would just have something like: command = lambda: popupmsg("popup message here!")) From there, we create a simple "okay" button, which will destroy the window. ![]() Here, we're defining a new tk.Tk instance, giving it a new title ("!"), and then preparing our text label with the msg parameter from the function. Label.pack(side="top", fill="x", pady=10)ī1 = ttk.Button(popup, text="Okay", command = stroy) Label = ttk.Label(popup, text=msg, font=NORM_FONT) Now that we have that, we're going to create our popup function: To start, we're going to need a couple new fonts, since "large_font" is a bit big. The goal is to create something that we can use in a variety of circumstances, so we want a popup window function, along with a text parameter where we can specify the text we want to show. This is used for things like informational messages, warnings, disclaimers, new product versions, and a whole lot more. Text at the top of the window is very easy to miss, so most people choose to do a pop-up message. There are many ways this can be done, with some text at the top of the window, or with something like a pop up message. Many times, it is generally useful to have a quick and easy way to communicate with your user.
0 Comments
Leave a Reply. |