199 Topics
| |
Hello. When we want to insert a vlue into a table in sqlite, we use this line, right? cursor.execute('INSERT INTO colors Values ("red", "blue")') As we can see above, we want to insert 2 words and we type them as when we are typing whole the codes. But i want … | |
| Hi, is that possible Tkinter to play a video? And if not possible so what GUI programming that you can recomended? I already search in google, find a few but there's dead link.. I need to show 2 windows, first the original video, and the second is video after processing |
Hello. I have used ScrolledText in my code, the scroll bar that appears is attached to the frame and although it scrolls the text box contents, I want that it was attached to the text widget itself. What can i do? | |
Hello friends :) I'm almost familiar with Tkinter and Kivy frameworks, but i'm looking for other python GUI frameworks, soething better than Tkinter. Kivy is also great but i need to watch more tutorial videos and i'm not able to do that right now. Can you introduce a better and … | |
Hello. How can i set an image as a Tkinter window background? I mean the whole background of the window not a photo area. | |
Hi everybody. How can i install ttk module on linux? When i try to import and use it on my Tkinter window, the error says sth like there is no module named ttk. So it means i should install it right?! I'm using python 2. I want to use ttk … | |
Hi friends! I'm coding a program; i have a Tkinter window with a view button and i can add names with entry box and add button into a list that will be saved on a db file. Now i want the program to show the list names otomaticly when the … | |
Hello! My this time question is about breaking a list. I have a list with the name favorite_movies. Here is 2 functions of all functions from the file: def add(): load_favorite() favorite_movies.append(ent.get()) dump_favorite() #print (colors) def view(): load_favorite() from Tkinter import * v = Tk() v.geometry('300x300') v.configure(background = 'white') top … | |
Hello friends :) This is my code: #!/usr/bin/env python3 # -*-coding: utf8-*- def callback(): lbl.configure(text = 'button clicked!') import Tkinter window = Tkinter.Tk() window.geometry('300x300') window.configure(background = 'PeachPuff3') lbl = Tkinter.Label(window, text = 'Nothing yet!') btn = Tkinter.Button(window, text = 'add', command = callback).pack() window.mainloop() Why it doesn't work? | |
Hi everybody! How can i call a function from Tkinter without using Buttons? I have a test.py file and there is a function def message in it: def message(): print('Good morning') from Tkinter import * tk = Tk() tk.mainloop() I want to type test.py message from linux terminal and the … | |
You can accesss the clipboard simply by using the Tkinter GUI toolkit that comes with your Python installation. | |
If you draw a series of close spaced shapes your eyes get fooled to see Moire patterns. Here is one example of this. | |
Hi. I am not exactly new to python but I have never done anything related to time and I don't know how. I want to make a count down timer that starts when I start a program and then either closes when I close the program or when it counts … | |
An example how to use Tkinter's OptionMenu() as a combobox to allow one year to be selected from an option list of let's say the past 15 years. | |
hi, have already written a GUI program on a different Pc, i copied the py file unto a new pc to continue with the building,i have installed all the necessary modules but it gives an error when i run it. Traceback (most recent call last): File "C:\Python34\aaaa.py", line 2, in … | |
I have a tkinter program like the one below (for example) and want to create an executable file using module cx_freeze. I am using Python33 and Windows7. # Tk_circle2.py # draw a circle with given center (x,y) and radius # tkinter normally needs a specified square try: # Python2 import … | |
Hello, sorry for the rudeness for asking for help on the first post but I'm still a beginner in programming. I am trying to create a GUI for plotting function using Tkinter and Python. In the top a label will show the current position of the mouse in the canvas … | |
A Tkinter image button that toggles between an up and down button image. | |
Dear all, Currently I am facing the problem on getting the resources for getting Tkinter and pygame to work together. Sadly, I do not have any leads til now(Which worries me alot!! :( ) so I hope the people here can point me to the correct direction. So basically I … | |
#QUESTION ONE person = input('Please enter your name:') print('Hello', person,'. How are you today?') #QUESTION TWO emotion = input('Please enter happy, sad or neither:') if emotion == 'happy': print('Well, it is great to hear that you are so chipper',person,'! Shall we continue?') else: print('Sorry to hear that. Hopefully we can … | |
I want to do exactly how these search engines do, ![52ec8527edb271dac9465a607d37b068](/attachments/large/4/52ec8527edb271dac9465a607d37b068.png "52ec8527edb271dac9465a607d37b068") But I want to show the same thing using pop-up message, where there shouldn't be any buttons, and it should display the message continiously Thanks in advance! | |
Hi, i have just started programming with python and i have beken given a task where i must create a python calculator. So far i have created the code (seen below) however i need help explaining it-e.g. saying what each part of the code does: from tkinter import * root … | |
I wanted to display the blue mean value in the text box, but it is giving me an error blue.set(B_mean1) AttributeError: 'numpy.ndarray' object has no attribute 'set' And this is my code: from Tkinter import Tk, Frame, BOTH from Tkinter import * import cv2 from collections import * from CBIR … | |
i'm taking the image from the user, and displaying it using label. Now i have to use that image for further processing. my code is: from Tkinter import Tk, Frame, BOTH from Tkinter import * import cv2 from collections import * from CBIR import * from experiment import * from … | |
hello, i want to know whether i can display an image from the path i have selected? like, i have a path for example: c:\user\desktop\33.jpg, and i want to take only that jpg file and i have to display that image using label or something. If it is possible, i … | |
| I'm trying to write a program in which a message box is to appear on the application window when the application is launched. The code below produces the message box, but it appears as a separate window that is not over the application window. Is there a way to fix … |
| Can anyone tell me how to get rid of the white boxes around the buttons? I want the boxes to be blue so the buttons appear on an entirely blue panel at the bottom of the ffame. I'm using OSX 10.6.8 and Python 2.7. Thanks in advance. from Tkinter import … |
I wish to use parameters in a class to change what the class displays how would this be done? | |
I have these few lines in a class in my program but it doesnt appear. No errors are shown and when i "print(menubar)" and address "0.4.." or "4..." appears menubar = Menu(master = self.mainGUI) fileMenu = Menu(menubar) fileMenu.add_command(label="Exit", command= destroyMethod) menubar.add_cascade(label="File", menu=fileMenu) destroy method does work and is existing. | |
from random import randint from tkinter import * import time screen = Tk() widthOfScreen = screen.winfo_screenwidth() #Get the width of the screen heightOfScreen = screen.winfo_screenheight() #Get the height of the screen screen.geometry("%dx%d+0+0" % (widthOfScreen, heightOfScreen)) def spammer(): count = 0 for count in range(0,1000): Button(screen, text = count, font = … |
The End.