I have multiple PMW widgets (EntryFields, ScrolledField etc), how can
I skip over these widgets when using the tab key?
Thank you,
John
Mar 26 '07
10 1920
On Mar 26, 5:41 pm, John McMonagle <jmcmona...@vel seis.com.auwrot e:
jp wrote:
>On Mar 26, 10:51 am, "jp" <johnpe...@yaho o.comwrote: I have multiple PMW widgets (EntryFields, ScrolledField etc), how can I skip over these widgets when using the tab key? Thank you, John
What version of Pmw are you using ? Tabbing between widgets works fine
on my system (Pmw 1.2, tk 8.4, KDE)
I can change the focus behaviour by using the takefocus option. You
were on the right track, you just did it wrong (see code below):
############### ############### ############### ############### ############
from Tkinter import *
import Pmw
root = Tk()
entry = Pmw.EntryField( root, labelpos=W, value="", label_text='Nam e:')
entry.grid(row= 1)
entry.component ('entry').confi gure(takefocus= 0)
Button(root,tex t='test1').grid (row=2)
Button(root,tex t='test2').grid (row=3)
Button(root,tex t='test3').grid (row=4)
root.mainloop()
############### ############### ############### ############### #############
Regards,
John
Thank you for pointing out my error, John and James. I had the syntax
of the command messed up. Using the following does cause the field to
be skipped when tabbing:
entry.component ('entry').confi gure(takefocus= 0)
John This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Schmidt |
last post by:
I'm trying to make a custom entry widget, as in the code that follows.
There are two problems I'm trying to fix:
1) I would like the widget to behave as myEntry.Escape() does now,
except that it happens on loss of focus, not when pressing Esc.
2) TABbing between multiple entry fields does undesired things with
the selection, and with cursor placement.
Can anyone offer any suggestions for how to fix this? I'm attemting to
|
by: David MacQuigg |
last post by:
Playing with Prothon today, I am fascinated by the idea of eliminating
classes in Python. I'm trying to figure out what fundamental benefit
there is to having classes. Is all this complexity unecessary?
Here is an example of a Python class with all three types of methods
(instance, static, and class methods).
# Example from Ch.23, p.381-2 of Learning Python, 2nd ed.
class Multi:
|
by: Michael Onfrek |
last post by:
Hi,
is copy, paste, cut of selection possible in entry widget? Docs say
selection must be copied by default, in my programm it doesn't work.
Regards, M.O.
|
by: William Gill |
last post by:
I am trying to get & set the properties of a widget's parent widget.
What I have works, but seems like a long way around the block. First I
get the widget name using w.winfo_parent(), then i convert the name to a
reference using nametowidget().
self.nametowidget(event.widget.winfo_parent()).hasChanged= True
It works, but I can't help but think I'm missing a more direct route. Am I?
Bill
|
by: Monty |
last post by:
I've been searching for guidance on which of the approaches used for
skipping repetive links (e.g., link as normal text, link as alt text
on invisible image, link with same forground and background colors
that becomes visible when in hover or active state using css) is the
best approach.
Is there any place on the net where this is addressed?
Thanks in advance.
| |
by: Tom |
last post by:
A dumb question: Exactly how does tabbing work in an ASP.NET form in the
browser? Does it work the same was as a Windows Forms form does?
I have a rather complicated ASP form (that consists of HTML tables, ASP text
boxes, drop downs, data grids, etc)... and no matter how I set the TAB
indexes, it never seems to work the way I want it to - sometimes tabbing all
over the place!
What am I doing wrong? Thanks for any input...
|
by: osmarjunior |
last post by:
I have a DataGridView with some read-only cells.
I want it skips these cells when the user press Tab or Shift+Tab keys.
How can I do this?
Thanks.
Junior.
|
by: Doug Bell |
last post by:
Hi
I have a DataGrid with some hidden columns and also some read Only and some
ComboBox Columns.
Sandard Tabbing through the Datagrid sees the focus go to the hidden columns
requiring further Tabbing to get to the desired column but it works fine
stopping correctly on the ComboBox column.
I have built a routine to test whether the use is Tabbing forward or back
(Shift Tab) by looking at the last location, not by trapping the Keys. If
|
by: Ty |
last post by:
I am creating a ASP.net project and I wanted to make it so that when
the user tabs on on of my pages that they do not have to tab through
some controls.
Is there a way to skip controls while tabbing?
Thanks,
Ty
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |