Python Forum
tkinter - Make circle for radio button bigger
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tkinter - Make circle for radio button bigger
#4
(Mar-07-2017, 03:50 AM)metulburr Wrote: I might be wrong, but i dont think there is an option to change the size of the default radio button itself. However you can use images, and then just scale them to your required size.

A bit more work than it's worth for my current program. 

But for future use, do you mean to overlay the current radio circle with an image?  Would I then have to write code to put a black dot in the image to show it was clicked, and also clear any other radio button's circle that was previously clicked?  Also have the code move the circle images to track the window in case the user moves the window?  And have code to manage all of that?

Or is there a simple way to do what you suggested that would work like the default radio button's circle?

Thanks for the help.

(Mar-07-2017, 04:00 AM)Larz60+ Wrote: No easy way that I know of. You can look at the ttk code for RadioButton,
you can probably modify it there. It's also possible (I don't know this, but may be possible) that
you can do it using pmw. You'll have to read the docs to see if it's possible. see: http://pmw.sourceforge.net/doc/index.html

(pmw now runs on python 3)

I did stumble on the ttk explanations for the RadioButton during my Googling.  Did not see an option there to change the size of the clickable circle.

Sounds like getting the circle to be bigger will be a challenging effort.  Maybe someday after I get more proficient with Python and tkinter.

Thanks for the help.
Reply


Messages In This Thread
RE: tkinter - Make circle for radio button bigger - by Raptor88 - Mar-07-2017, 06:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error Calculating Circle Area in Python aaronramsdale 1 112 Jun-04-2024, 07:57 AM
Last Post: Pedroski55
  how to open a popup window in tkinter with entry,label and button lunacy90 1 1,026 Sep-01-2023, 12:07 AM
Last Post: lunacy90
  Tkinter button images not showing up lunacy90 7 1,833 Aug-31-2023, 06:39 PM
Last Post: deanhystad
Bug tkinter.TclError: bad window path name "!button" V1ber 2 934 Aug-14-2023, 02:46 PM
Last Post: V1ber
  Looping over radio buttons garynewport 8 2,469 Jan-10-2023, 10:56 AM
Last Post: garynewport
  make all text in Right to left alignment in tkinter widgets jalal0034 1 1,465 Sep-27-2022, 06:42 PM
Last Post: Larz60+
  How to plot seaborn heatmap on top of a background circle SriRajesh 0 1,496 Jul-09-2022, 04:00 AM
Last Post: SriRajesh
  drawing moving circle on line with python barrai 1 3,265 Feb-25-2022, 03:33 PM
Last Post: BashBedlam
  Making a plot with secondary y-axis bigger snkm 0 1,178 Feb-10-2022, 09:40 AM
Last Post: snkm
  Closing Threads and the chrome window it spawned from Tkinter close button law 0 1,788 Jan-08-2022, 12:13 PM
Last Post: law

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020