473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Alignment of Radio Buttons in Tkinter

440 256MB
Hi,

I have a two radio buttons ,and doing a middle justification for the radio button text.But due to the different size text the alignment is not done correctly.

Expand|Select|Wrap|Line Numbers
  1. Sample
  2.         self.CheckButton1= Radiobutton(mid.frame,text="Line",variable=RadioButtonVar,state=ACTIVE,value=1)
  3.         self.CheckButton2= Radiobutton(mid.frame,text=" CircleRadius",variable=RadioButtonVar,state=DISABLED,value=2)
  4.  
How to handle this scenario,to make the text in proper justification?

Thanks
PSB
Apr 20 '07 #1
2 5170
bartonc
6,596 Expert 4TB
Hi,

I have a two radio buttons ,and doing a middle justification for the radio button text.But due to the different size text the alignment is not done correctly.

Expand|Select|Wrap|Line Numbers
  1. Sample
  2.         self.CheckButton1= Radiobutton(mid.frame,text="Line",variable=RadioButtonVar,state=ACTIVE,value=1)
  3.         self.CheckButton2= Radiobutton(mid.frame,text=" CircleRadius",variable=RadioButtonVar,state=DISABLED,value=2)
  4.  
How to handle this scenario,to make the text in proper justification?

Thanks
PSB
It takes a lot of fooling around with CheckButton1.grid() [don't mix this with calls to .pack()!] to get widgets to lay out correctly. This is a big reason that I stopped using Tkinter.

Forum stuff:
Once again, I'll remind you that "UI" doesn't meet the requirement for a "Good Thread title". Perhaps you have not read the Posting Guidelines.

Thanks for your co-operation.
Apr 20 '07 #2
psbasha
440 256MB
So it will be difficult to do the alignment of radio buttons using TKinter.
Apr 20 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1 value=3> <br> <input type="radio" name=p2 value=1>...
6
by: Craig Keightley | last post by:
I have a page that has n number of radio groups (yes/No) how can i prevent the form being submitted if more than one radio group is not selected? By default all radio groups are unchecked ...
2
by: James P. | last post by:
Help, I need to display radio buttons on a form. The data is from SQL table: each row in each table is displayed as a radio button. I have multiple SQL tables so I understand I need to put...
4
by: joseff | last post by:
Hi evryone!! I' m very new not only to Python and Tkinter but to programing. I'm a bit stuck here and would be grateful for some help. I have 3 radio select buttons(see below) which I want to link...
11
by: C.W.Holeman II | last post by:
I what to hide an input element and the following text. I have the selector for the input working and just need to grab the text following it. CSS: form{ display:table; text-align:center; }
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
2
by: vajratkarviraj | last post by:
Hi all, I'm using Python 2.5.1 and TkInter. Hey here is the problem. Suppose I have 4 radio buttons (lets say values 1,2,3 and 4). They arranged in 2 columns (Each of the 2 columns has 2 radio...
2
by: vajratkarviraj | last post by:
Hi, Am using Tkinter. Suppose I have 4 radio buttons (value 1,2,3 & 4) arranged in a single column. I want radio 2 to have a normal state and radio 4 to have a disabled state when radio 1 is...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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...
0
isladogs
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...

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.