frontend

How to display filelist in collapse state using os module

How to display filelist in collapse state using os module Question: I am trying to display file list in collapse state and couldn’t find a solution. After running the app, it always display in opened file list which is messy in user’s eye. if you guys have any idea on how to achieve it, would …

Total answers: 1

Is it possible to destroy a button or checkbox when it is clicked?

Is it possible to destroy a button or checkbox when it is clicked? Question: I am currently using tkinter to build a GUI and one of the functionalities I was hoping to achieve with the buttons was if it can be destroyed when it is clicked. I tried something along the lines of: button = …

Total answers: 2

Buttons not being placed inside the correct frame in tkinter

Buttons not being placed inside the correct frame in tkinter Question: I am a newbie trying to use tkinter to build a GUI for an application. So far, I have a frame that I’d like to put several buttons into. However, every time I attempt to position this button, it isn’t placed properly, being put …

Total answers: 1

Django templateview not recognizing my template_name

Django templateview not recognizing my template_name Question: Currently I have in settings set my main directory to the templates folder so that I have a project level templates. Within that folder I have a home.html file. TEMPLATES = [ { ‘BACKEND’: ‘django.template.backends.django.DjangoTemplates’, ‘DIRS’: [BASE_DIR / "templates"], ‘APP_DIRS’: True, ‘OPTIONS’: { ‘context_processors’: [ ‘django.template.context_processors.debug’, ‘django.template.context_processors.request’, ‘django.contrib.auth.context_processors.auth’, …

Total answers: 2

Python subprocess and user interaction

Python subprocess and user interaction Question: I’m working on a GUI front end in Python 2.6 and usually it’s fairly simple: you use subprocess.call() or subprocess.Popen() to issue the command and wait for it to finish or react to an error. What do you do if you have a program that stops and waits for …

Total answers: 1