I am currently underling the first character of a menu title (to indicate
its shortcut/accelerator key) like this:
self.WildBtn = Menubutton(self .mBar, text=WILDMENU, underline=0, state=DISABLED)
However, I intend to actually have two separate keys invoke this menu
to have it behave differently in different circumstances.
Is it possible to underline more than a single character as I am doing
with the 'underline=0' above. I tried 'underline=(0,2 )' but that didn't
work.
Ideas?
TIA,
--
----------------------------------------------------------------------------
Tim Daneliuk tu****@tundrawa re.com
PGP Key: http://www.tundraware.com/PGP/ 6 1958
On Thu, Jan 27, 2005 at 06:38:22AM -0500, Tim Daneliuk wrote: Is it possible to underline more than a single character as I am doing with the 'underline=0' above. I tried 'underline=(0,2 )' but that didn't work.
No.
Jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFB+bG1Jd0 1MZaTXX0RAqvPAJ 9nXk7km0ju+yn7R ajPkZEHLibL+ACg lLAx
eOkRfB8l+tIUUib GHw6itZQ=
=IGHj
-----END PGP SIGNATURE-----
Jeff Epler wrote: On Thu, Jan 27, 2005 at 06:38:22AM -0500, Tim Daneliuk wrote:
Is it possible to underline more than a single character as I am doing with the 'underline=0' above. I tried 'underline=(0,2 )' but that didn't work.
No.
Jeff
I love a clear answer ;) thanks...
--
----------------------------------------------------------------------------
Tim Daneliuk tu****@tundrawa re.com
PGP Key: http://www.tundraware.com/PGP/
Tim Daneliuk <tu****@tundraw are.com> wrote: I am currently underling the first character of a menu title (to indicate its shortcut/accelerator key) like this:
self.WildBtn = Menubutton(self .mBar, text=WILDMENU, underline=0, state=DISABLED)
However, I intend to actually have two separate keys invoke this menu to have it behave differently in different circumstances.
You can, of course, CHANGE the underlined character to match the
circumstances.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Tim Roberts wrote: Tim Daneliuk <tu****@tundraw are.com> wrote:
I am currently underling the first character of a menu title (to indicate its shortcut/accelerator key) like this:
self.WildBtn = Menubutton(self .mBar, text=WILDMENU, underline=0, state=DISABLED)
However, I intend to actually have two separate keys invoke this menu to have it behave differently in different circumstances.
You can, of course, CHANGE the underlined character to match the circumstances.
Yeah, I understand that ... what I want is two characters simulatenously
underlined ... oh well, another solution will be arranged...
--
----------------------------------------------------------------------------
Tim Daneliuk tu****@tundrawa re.com
PGP Key: http://www.tundraware.com/PGP/
Tim Daneliuk wrote: However, I intend to actually have two separate keys invoke this menu to have it behave differently in different circumstances.
You can, of course, CHANGE the underlined character to match the circumstances.
Yeah, I understand that ... what I want is two characters simulatenously underlined ... oh well, another solution will be arranged...
if you want a menu choice to have different behaviour depending on what
key you use to invoke them, you should use two different choices.
</F>
Fredrik Lundh wrote: Tim Daneliuk wrote:
However, I intend to actually have two separate keys invoke this menu to have it behave differently in different circumstances.
You can, of course, CHANGE the underlined character to match the circumstance s.
Yeah, I understand that ... what I want is two characters simulatenously underlined ... oh well, another solution will be arranged...
if you want a menu choice to have different behaviour depending on what key you use to invoke them, you should use two different choices.
</F>
That is my intention. I have a menu that lists a set of regular expressions
available for a particular task. However, the regex are applied in two
different ways for this task. I want a common menu for displaying all
the choices, but two separate "Accelerato r Keys" to invoke it, depending
on the desired application...
--
----------------------------------------------------------------------------
Tim Daneliuk tu****@tundrawa re.com
PGP Key: http://www.tundraware.com/PGP/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Josh |
last post by:
Caution, newbie approaching...
I'm trying to come up with a very simple Tkinter test application that
consists of a window with a drop-down menu bar at the top and a grid
of colored rectangles filling the remainder of the window. Mind you,
this is a contrived test application to help me understand Tkinter and
Python, not an actual application yet. I've trivially subclassed
Tkinter.Canvas into ColorCanvas, added a bunch of ColorCanvases...
|
by: James Ash |
last post by:
I'm writing a very simple and small Ptyhon/Tkinter application and I'm
having trouble getting the menus to appear correctly. Rather than a name
appearing on the menu bar, I see "()" instead. Clicking on these "()" does
nothing (other than changing the appearance of them to indicated they've
been pressed).
I'm using Python 2.2.3 on Win2K, using a release downloaded from one
of the Cygwin mirrors.
This is most likely a simple mistake...
|
by: Eric Brunel |
last post by:
Hi all,
I'm in the process of localizing a Tkinter application and I'm struggling with a
problem for which I can't figure out a solution. The following code:
-------------------------------
from Tkinter import *
root = Tk()
root.tk.call('encoding', 'system', 'utf-8')
|
by: midtoad |
last post by:
I'm trying to display a GIF image in a label as the central area to a
Tkinter GUI. The image does not appear, though a space is made for it.
Why is this so?
I notice that I can display a GIF image in the central area of a simple
menu-bar app as shown below in the first code sample. But, when I set up my
app with a class, as shown below in the second code sample, the image
disappears.
How can I correct this? I'm sure the answer would...
|
by: Richard Lewis |
last post by:
Hi there,
I've got a tree control in Tkinter (using the ESRF Tree module) but I
can't get it to layout how I want it.
I'd like to have it so that it streches north/south (anchored to the top
and bottom), is of a fixed width and is anchored to the left hand side.
Here's my code (its derived from one of the examples from the ESRF web
site):
| |
by: Stewart Midwinter |
last post by:
I have a Tkinter app running on cygwin. It includes a Test menu item
that does nothing more than fetch a directory listing and display it
in a Toplevel window (I'd use a tkMessageBox showinfo widget, but for
some reason the text is invisible on cygwin).
After I close the Toplevel widget, all of the menus in my app behave
as though they have no contents to them, i..e I can press on the File
menu button, and see it depress, but the Exit...
|
by: Gigs_ |
last post by:
what is the best way to write tkinter menus? As toplevels or as frame
with Menubutton?
im doing like this
class MyWidget(Frame):
def __init__(self, master=None): """ should this master be
parent? Because my first tought was that this is toplevel master than i
found that its not"""
Frame.__init__(self, master) # and this too than
self.config(width=200, height=200)
|
by: joshdw4 |
last post by:
I hate to do this, but I've thoroughly exhausted google search. Yes,
it's that pesky root window and I have tried withdraw to no avail. I'm
assuming this is because of the methods I'm using. I guess my question
is two-fold.
1) How do I get rid of that window?
2) Any comments in general? I am just learning python (and coding with
classes), so I'm sure there are things I should pound into my head
before I learn bad habits.
Here's the...
|
by: dominoeffect |
last post by:
Hey all!
I'm building a site for a friend which uses this Wordpress theme:
http://www.felixkrusch.de/about
^ As you can see by visting the site, the title of the current page is always underlined on the main menu.
In the code the menu is displayed by this code:
|
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: 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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: 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
|
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...
| |