Hello everyone,
I'm trying to implement a virtual instrument, which has buttons and
displays, using Tkinter+Pmw.
One of items on the virtual instrument is a round button.
This is imitating a tact switch.
Tkinter has a Button class, which I can assign a button image.
However, when the button is depressed, the rectangle is sunken (rather
than the round button).
Probably I need to prepare two images, normal one and depressed one,
and implement all button behaviours by myself.
But before reinventing everything by myself, I'm wondering if there is
an easy way to implement or there is existing widget example of such
button.
So far, I couldn't find any good examples.
Any suggestions are highly appreciated.
Best regards,
Aki Niimura 1 13602
akineko wrote:
Hello everyone,
I'm trying to implement a virtual instrument, which has buttons and
displays, using Tkinter+Pmw.
One of items on the virtual instrument is a round button.
This is imitating a tact switch.
Tkinter has a Button class, which I can assign a button image.
However, when the button is depressed, the rectangle is sunken (rather
than the round button).
Probably I need to prepare two images, normal one and depressed one,
and implement all button behaviours by myself.
But before reinventing everything by myself, I'm wondering if there is
an easy way to implement or there is existing widget example of such
button.
So far, I couldn't find any good examples.
Any suggestions are highly appreciated.
Best regards,
Aki Niimura
Try http://search.cpan.org/~darnold/Tk-S...yledButton.pod.
This is Perl, but it might be worthwhile to take a look at implementation.
George This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Joseph |
last post by:
hi
I have 2 questions..
1) I am a little confused about how i should layout my java files..ie, how
it's normally done..i have a heep of classes in one file...mostly JPanel
and a button class i made, as well as a class that extends frame...is it
proper technique to put each class in it's separate file, and make it
public? or should i just leave it in one file, as all the classes are
components for one form?
|
by: black |
last post by:
Howdy~
i am with Win2k and had built a window with Tkinter, it has 3 button on its topright corner as common window, but what i want is just one or tow of them. ie, is there any way i can configure the appearance of minimize, maximize and close button ?
Regards~
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
|
by: black |
last post by:
Howdy~
i am with Win2k and had built a window with Tkinter, it has 3 button on its topright corner as common window, but what i want is just one or tow of them. ie, is there any way i can configure the appearance of minimize, maximize and close button ?
Regards~
---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
|
by: DzemoT. |
last post by:
how to make round button in vb.net?
|
by: Lars Netzel |
last post by:
Hi!
I have a round area which I want to be able to move the mouse over and fire
off events... how do I do that?
I have drawn a FillPie Graphics and I feel that there has to be a way of
getting to know if the mouse is over that area since I have the coordinates
to paint the Pie but I don't know where to start or what to look for really.
Best Regard
| |
by: Zorpiedoman |
last post by:
I am trying to create my own button control, but I want it round, not square.
I can draw the graphics just fine, but I wish there was some way to make the
background of the Usercontrol area transparent.
Is there a way to do this?
--
--Zorpie
|
by: cameljs18 |
last post by:
Should be easy don't know y i cant get it to work please help.
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
|
by: Guilherme Polo |
last post by:
On Wed, Sep 3, 2008 at 8:57 PM, Kevin McKinley <kem1723@yahoo.comwrote:
Come on.. "help on lines 384-403", that is not a good way to look for
help. You are supposed to post some minimal code that demonstrates the
problem.
Anyway, this demonstrates what you are getting (independent of python version):
import Tkinter
|
by: Dream |
last post by:
The code create 2 windows. 2 radiobuttons are put on the second
window. A control variable "v" is binded to the 2 widgets.
But when I run the code, I found the control variable not binded
succsessfully: The second radiobutton was not selected by default;
Click ed each button always print 1. I don't know what is wrong. So I
need help.Thanks.
from Tkinter import *
def test(event_instance):
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: 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...
| |