Tagged Questions
0
votes
0answers
7 views
How to make TKInter windows that can be switched between with Alt-Tab
I'm learning tkinter, using Python 2.6 on Windows. It's clear from examples on the internet how to create multiple top-level windows, but there is still only one button in the taskbar, and the mouse ...
1
vote
2answers
21 views
Please explain rationale for tkinter global import approach
This is a basic question, so I apologize if it has come up before. I searched stackoverflow and elsewhere, but I could not find a definitive answer.
I am curious why tkinter examples typically use a ...
0
votes
2answers
23 views
python tkinter - want to call a function when scrollbar clicked in ScrolledText widget
[Edits noted:]
I want to hook into the ScrolledText widget so that when a user clicks anywhere in the scrollbar (or even scrolls it with the mouse wheel, hopefully) I can have it call a callback ...
0
votes
1answer
15 views
Python/Tkinter: how do I action a method and pass key of dict with Scale widget?
I've searched for solutions to this and have tried to implement them, but am not having any success getting a Scale widget to call a method with the command arg. I am storing the widget objects in ...
1
vote
1answer
12 views
Python 3.x tkinter comboboxes syncing ['variables']
I am trying to have multiple (two for this example) ttk.Comboboxes with unique variables. The boxes are syncing my selection rather than allowing me to select individual variables.
I am using a main ...
-1
votes
1answer
20 views
Function with arguments autostarts
So, I have the following code sample:
from Tkinter import *
import socket
def click(*args):
sock = socket.socket()
try:
sock.connect(('localhost', 9999))
sock.send(args)
...
0
votes
0answers
13 views
Python Tkinter: Changing other button's text from event handler of one button
I have the following problem when using tkinter to create a very simple window containing a matrix of buttons: When one of the buttons is clicked, the event handler changes the text of that button ...
0
votes
1answer
69 views
Python Cookie Clicker: Auto Click Function?
My Background:
I have done quite a bit of programming with python, I would say I am not bad at it. I am familiar with most of the modules, OOP programming and stuff. You can check my pastebin profile ...
0
votes
0answers
18 views
Finding the Coordinates of Maxima in an Image
Background:I'm new to using Python's PIL for photo manipulation, and have very recently found the need for a basic photo processing function within an existing program. My program currently imports an ...
0
votes
1answer
17 views
Python: Set Color for Tkinter Button using .grid()
using the Python 2.7 Tkinter Grid Layouter, i would like to do something like
root.button = Button(root, bg = 'green', ....)
root.button.grid(...)
in order to get a green button.
Running this, it ...
0
votes
0answers
27 views
Schedule Python exe file (with Tkinter module) in Windows 7
I'm trying to capture keystrokes using Tkinter module. I used py2exe to convert my script to a exe file and I combined it with Task scheduler in windows 7 to run it on specific time. When I double ...
0
votes
1answer
13 views
PyQt continuously updating variable.
I am very new to PyQt and new to GUI programming. I am making a game. I need a variable to update continuously (it is a function of the time). I am struggling to figure out how to do this. I did ...
0
votes
0answers
22 views
Pass additional parameter through event_generate?
Is there any way to pass a custom parameter (string for instance) through the event_generate() method?
The problem is that i have two threads. one of them should pass a variable which is required by ...
0
votes
1answer
15 views
Python Tkinter - How to display JPG image in Button
using python 2.7 and Tkinter, how can i make an image, that when clicked on runs a function?
i was thinking about using something like
Button(...,foto = "mypic.jpg",command=myfunc)
but i don't ...
0
votes
0answers
15 views
Alarm Clock that opens a webbrowser in python using Tkinter and displays time
I'm very new to Python, and was trying to figure out a way of making an alarm clock that could display time using Tkinter, and would open a url when the desired time was reached. The issue as far as I ...