473,569 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

lazy Tkinter question - [focus / virtual keyboard]

Is it possible in Tkinter to simulate a keystroke into the current
active (focused widget) by pressing another button (this is for a
virtual keyboard on a touchscreen pc).

the troubles i see is:
on pressing the button focus changes to it
if you set focus back, some inputfields will act specially (eg. on
focus out/focus in, keypress)
i know i have to use the "event" function in tkinter to send the
keystroke - but i still have the above troubles?

Input would be extremely appreciated...

--
Med Venlig Hilsen / Regards

Kim Petersen - Kyborg A/S (Udvikling)
IT - Innovationshuse t
Havneparken 2
7100 Vejle
Tlf. +4576408183 || Fax. +4576408188

Jul 18 '05 #1
0 1871

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4263
by: Mike | last post by:
I've placed a radiobutton on a green panel. The background of the radiobutton is also green. Borderwidth is 0 and relief is FLAT. I still get a thin gray border around the radiobutton. What is this border, and how can I get rid of it. Thanks. Mike
6
6075
by: Elaine Jackson | last post by:
I've got a script where a button gets pushed over and over: to cut down on the carpal tunnel syndrome I'd like to have the button respond to presses of the Enter key as well as mouse clicks; can somebody clue me in regarding how this is done? Muchas gracias. Peace
5
2173
by: Sean McIlroy | last post by:
hi all i recently wrote a script that implements a puzzle. the interface mostly consists of a bunch of colored disks on a tkinter canvas. the problem is that the disks change their colors in ways other than the way they're supposed to. it certainly isn't just a bug in my script, since i can sometimes change the color of certain disks just...
1
1276
by: sconeek | last post by:
hi all, I am implementing a virtual online keyboard based on javascript and html. now i have a username and a password field which needs to be populated using the virtual keyboard. my problem is that i have hard coded the textfield where data should be inserted. however i want, whereever the focus is, thats where the data should be...
8
5263
by: sconeek | last post by:
hi all, i have a html form with multiple text fields, accepting input from a virtual onscreen keyboard. so far i have document.forms.elements.value+=x; The problem is that i dont want to hard code a text field name. it should type in text wherever the focus is.
1
1357
by: Rob | last post by:
Windows XP's "on-screen keyboard" accessibility tool accepts clicks on a virtual keyboard and sends them to whatever app has the input focus. But it does one neat thing I can't reproduce: it does not appear to steal the focus from the other active app when you click on its keys. (It's in the "Accessibility" program group; try it for a better...
1
5098
by: vigacmoe | last post by:
Hi all, I'm trying to write a simple tkinter program, then this problem popped up. The followin code will describe the problem. ------------------------------------------ import Tkinter class countdown(Tkinter.Frame):
44
4967
by: bg_ie | last post by:
Hi, I'm in the process of writing some code and noticed a strange problem while doing so. I'm working with PythonWin 210 built for Python 2.5. I noticed the problem for the last py file processed by this script, where the concerned tmp file is only actually written to when PythonWin is closed. In other words, after I run this script, one of...
2
2693
by: dantz | last post by:
hi everyone, I am loading a flash game(shockwave flash object) using the panel in c# Winforms. Everytime the game will need to let the player to input some text I want to provide a virtual keyboard. But my problem is how to identify the focus from that flash game. What API do i need to use to save that focus so I can paste the inputs from my...
0
7695
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7922
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7668
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.