# Tk button widgets

**URL:** <https://www.ruby-forum.com/t/tk-button-widgets/62305>\
**Category:** Ruby\
**Created:** [June 2, 2006, 3:03pm UTC](https://www.ruby-forum.com/t/tk-button-widgets/62305 "2006-06-02T15:03:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![customsgod](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@customsgod](https://www.ruby-forum.com/u/customsgod)\
**Post date:** [June 2, 2006, 3:03pm UTC](https://www.ruby-forum.com/t/tk-button-widgets/62305/1 "2006-06-02T15:03:18Z")

</div>

I wrote a basic GUI on a windows machine and when i tested it on Mac OS  
X tiger for some reason some of my button widgets are completely hidden  
in only some of the windows and reappear when you hit tab. I’ve been  
trying to debug it, but i’m at a loss, any suggestions would be greatly  
appreciated.

---

<div class="post-metadata">

**Author:** ![customsgod](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@customsgod](https://www.ruby-forum.com/u/customsgod)\
**Post date:** [June 3, 2006, 6:53pm UTC](https://www.ruby-forum.com/t/tk-button-widgets/62305/2 "2006-06-03T18:53:47Z")

</div>

From: Tait P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Tk button widgets  
Date: Sat, 3 Jun 2006 01:43:07 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> I wrote a basic GUI on a windows machine and when i tested it on Mac OS  
> X tiger for some reason some of my button widgets are completely hidden  
> in only some of the windows and reappear when you hit tab. I’ve been  
> trying to debug it, but i’m at a loss, any suggestions would be greatly  
> appreciated.

Can you show me a simple code which has the trouble?

---

<div class="post-metadata">

**Author:** ![customsgod](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@customsgod](https://www.ruby-forum.com/u/customsgod)\
**Post date:** [June 5, 2006, 4:02pm UTC](https://www.ruby-forum.com/t/tk-button-widgets/62305/3 "2006-06-05T16:02:19Z")

</div>

Hidetoshi NAGAI wrote:

> From: Tait P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Subject: Tk button widgets  
> Date: Sat, 3 Jun 2006 01:43:07 +0900  
> Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
> 
> > I wrote a basic GUI on a windows machine and when i tested it on Mac OS  
> > X tiger for some reason some of my button widgets are completely hidden  
> > in only some of the windows and reappear when you hit tab. I’ve been  
> > trying to debug it, but i’m at a loss, any suggestions would be greatly  
> > appreciated.
> 
> Can you show me a simple code which has the trouble?

Thanks for the response but i made a work around by creating two frames  
per window and putting buttons in one and labels and entry widgets in  
the other, if you want i can still send you the file that should still  
have the problem though.

---

<div class="post-metadata">

**Author:** ![customsgod](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@customsgod](https://www.ruby-forum.com/u/customsgod)\
**Post date:** [June 5, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/tk-button-widgets/62305/4 "2006-06-05T17:59:11Z")

</div>

From: Tait P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: Tk button widgets  
Date: Mon, 5 Jun 2006 23:03:02 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> Thanks for the response but i made a work around by creating two frames  
> per window and putting buttons in one and labels and entry widgets in  
> the other, if you want i can still send you the file that should still  
> have the problem though.

Probably, I don’t understand your problem.  
But, if you have the trouble on some kind of container widgets  
(panedwindow, tabnotebook, and so on), it may help you to call  
“Tk.update” or “Tk.update\_idletasks” before packing frames into  
the container.
