Profile

Join date: May 18, 2022

About

buttons to be created in subfolders of another folder. How should I do that? For example, I have a root folder which contains 2 subfolders:



 

Usb Tv Box Driver For Windows 7 64 Bit Download


Download


 





Category:Computer hardwareQ: Tkinter dynamic creation of widgets in subfolders of another folder I am creating a GUI with Tkinter and I need some buttons to be created in subfolders of another folder. How should I do that? For example, I have a root folder which contains 2 subfolders: button1_1 and button1_2. I also have the file main.py which defines the functions for the two buttons. How do I specify in main.py that the two buttons should be created in the subfolders? I tried something like this: # -*- coding: utf-8 -*- import os import sys import Tkinter from Tkinter import * def popup(): window = Toplevel() window.title('Test') window.geometry('400x150') window.resizable(0, 0) # create frames left_frame = LabelFrame(window, text="This frame is here").grid(row=0, column=0, sticky="nsew") right_frame = LabelFrame(window, text="This frame is here").grid(row=1, column=0, sticky="nsew") # create buttons left_button = Button(left_frame, text="open left", command=popup1) left_button.grid(row=0, column=0) right_button = Button(right_frame, text="open right", command=popup2) right_button.grid(row=0, column=1) window.mainloop() def popup1(): pass def popup2(): pass I also tried using subfolders but this was a major headache for me because I can't properly delete the widgets when I close the window. I'm sorry that this question might sound really stupid to you but I'm a student and I didn't study Tkinter very well yet. I really tried to figure it out but I don't know how to solve the problem. Thanks! A: You just have to specify the full path to




ee43de4aa9

U

Usb Tv Box Driver For Windows 7 64 Bit Download |LINK|

More actions