[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:26180] Re: ruby tk problem

From: Hidetoshi NAGAI <nagai@...>
Date: 2009-10-20 09:17:46 UTC
List: ruby-core #26180
From: hamid i. <al_caponeiran@hotmail.com>
Subject: [ruby-core:26167] ruby tk problem
Date: Tue, 20 Oct 2009 02:41:06 +0900
Message-ID: <SNT111-W53222670F50B97A3D3ED479FC10@phx.gbl>
> the point is that i dont know how i commit the variable entry1.textvariable=
> =2Centry2.textvariable which i get from my GUI to my function=20
> 
> Little_Helpers_spezial.make_ready_for_export and Little_Helpers_spezial.sav=
> e . can anybody show me the correct way???=20

Excuse me, but I can't understand how it should work.
Can the following help you?

---------------------------------------

Before calling Tk.mainloop, your GUI deesn't appear on your windowing
system. So, you must call your functions in callbacks.

<< plan A: use "commit" button >>
After writing texts into the entry boxes, a user must click the
"commit" button. You call your functions in the callback procedure for
"command" option of the button.

<< plan B: use binding for entry boxes >>
You define a binding for an event (e.g. enter "Return" key) for each
entry box. When a user generates the event, a callback which binds to
the event is called.

<< plan C: use TkVariable#trace >>
You define a trace callback for a Tk variable of "textvariable" option
of an entry box. Whenever a user modifies the text of the entry box,
the value of the Tk variable is changed, and the callback is called.

-- 
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)

In This Thread

Prev Next