From: "hamid i." Date: 2009-10-20T02:41:06+09:00 Subject: [ruby-core:26167] ruby tk problem <200910200229.FMLAAB3629.ruby-core@ruby-lang.org> MIME-Version: 1.0 --_2de38787-8bca-4b66-ad0c-76dc3fca80d8_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello =20 ive got a problem and i dont have a solution... =20 im working with ruby tk and this is my code: =20 =20 =20 =20 require 'little_helpers_spezial' require 'tk' root =3D TkRoot.new root.title =3D "RUBY GUI f=FCr Confluence" entry1 =3D TkEntry.new(root) entry2 =3D TkEntry.new(root) entry3 =3D TkEntry.new(root) entry4 =3D TkEntry.new(root) entry5 =3D TkEntry.new(root) variable1 =3D TkVariable.new variable2 =3D TkVariable.new variable3 =3D TkVariable.new variable4 =3D TkVariable.new variable5 =3D TkVariable.new ---------------------------------- entry1.textvariable =3D variable1 entry2.textvariable =3D variable2 entry3.textvariable =3D variable3 entry4.textvariable =3D variable4 entry5.textvariable =3D variable5 ----------------------------------- variable1.value =3D "Source" variable2.value =3D "Depth" variable3.value =3D "Destination" variable4.value =3D "Destination-Space" variable5.value =3D "ParentID" -------------------------------- source =3D entry1.textvariable depth =3D entry2.textvariable ------------------------------- =20 x =3D Little_Helpers_spezial.make_ready_for_export(confluence=2C source=2C = depth) ------------------------------------- destination =3D entry3.textvariable=20 dest_space =3D entry4.textvariable parentId =3D entry5.textvariable=20 ------------------------------------- Little_Helpers_spezial.save(confluence=2C x=2C destination=2C dest_space= =2C parentId) } Tk.mainloop =20 =20 =20 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 =20 thanks =20 _________________________________________________________________ Windows Live Hotmail: Your friends can get your Facebook updates=2C right f= rom Hotmail=AE. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/so= cial-network-basics.aspx?ocid=3DPID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092= 009= --_2de38787-8bca-4b66-ad0c-76dc3fca80d8_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello
 =3B
ive =3Bgot a problem and i dont have a solution...
 =3B
im working with ruby tk and this is my code:
 =3B
 =3B
 =3B
 =3B
require <= SPAN class=3Ds title=3DString>'little_helpers_spezial'
require<= SPAN title=3DSpace> 'tk'
root =3D TkRoot.new
root.title =3D "RUBY GUI f=FCr Confluence"

entry1 =3D TkEntry.n= ew(root)

entry2
=3D TkEntry.new(root)
entry3 =3D TkEntry.n= ew(root)

entry4 =3D TkEntry.new(root)
entry5 =3D TkEntry.n= ew(root)


variable1 =3D TkVariable.new
variable2 =3D = TkVariable.new
variable3 =3D
TkVariabl= e.newvariable4 =3D TkVariable.new
variable5 =3D = TkVariable.new

---------
-----= -------<= SPAN title=3DOperator>-------------
entry1.textvariable =3D = variable1
entry2.textvariab= le =3D variable2
entry3.textvariable =3D variable3=
entry4.textvariable =3D = variable4
entry5.textvariable =3D variable5

-
----= --------= -----= -------<= SPAN title=3DOperator>-----
-----


= variable1.value = =3D "Source"
variable2.value =3D<= SPAN title=3DSpace>
"Depth"
vari= able3.value= =3D "Destination"
variable4.value =3D = "Destination-Space"
variable5.value =3D <= /SPAN>"ParentID"

-
--------= --------= -----= -------<= SPAN title=3DOperator>-
--
 =3B
source = =3D entry1.
textvariable
 =3B
depth
=3D entry2.= textvariable
= ----
----= -----= -------<= SPAN title=3DOperator>-----------
&n= bsp=3B


x<= /SPAN> =3D Little_Helpers_spezia= l.make_ready_for_e= xport(confluence=2C source=2C depth)


---= -------<= SPAN title=3DOperator>-
---------------------= -----
 =3B
destination = =3D entry3.
textvariable
 =3B
dest_space =3D entry4.<= /SPAN>textvariable
 =3B
parentId = =3D entry5.textvariable

= -----= -------<= SPAN title=3DOperator>-
---------------------= ---

=
 =3B
Little_Helpers_s= pezial.save= (confluence=2C x= =2C destination=2C dest_space=2C parentId= )

}



Tk.mainloop
 =3B
 =3B
 =3B
the point is that i dont know how i commit the variable entry1.textvariab= le=2Centry2.textvariable which i get from my GUI to my function
L= ittle_Helpers_spezial.make_ready_for_export and Little_Help= ers_spezial.save .= can anybody show me the correct way???
 =3B
thanks


Windows = Live Hotmail: Your friends can get your Fa= cebook updates=2C right from Hotmail=AE. = --_2de38787-8bca-4b66-ad0c-76dc3fca80d8_--