hallo ich habn anfänger problem mit dateneinlesen aus der gui und speichern in eine variable und übergeben dieser variable einer funktion. kann mir da jemand bitte helfen??? danke mein code: require 'little_helpers_spezial'require 'tk'root = TkRoot.newroot.title = "RUBY GUI für Confluence"entry1 = TkEntry.new(root)entry2 = TkEntry.new(root)entry3 = TkEntry.new(root)entry4 = TkEntry.new(root)entry5 = TkEntry.new(root)variable1 = TkVariable.newvariable2 = TkVariable.newvariable3 = TkVariable.newvariable4 = TkVariable.newvariable5 = TkVariable.new----------------------------------entry1.textvariable = variable1entry2.textvariable = variable2entry3.textvariable = variable3entry4.textvariable = variable4entry5.textvariable = variable5-----------------------------------variable1.value = "Source"variable2.value = "Depth"variable3.value = "Destination"variable4.value = "Destination-Space"variable5.value = "ParentID"-------------------------------- source = entry1.textvariable depth = entry2.textvariable------------------------------- x = Little_Helpers_spezial.make_ready_for_export(confluence, source, depth)------------------------------------- destination = entry3.textvariable dest_space = entry4.textvariable parentId = entry5.textvariable ------------------------------------- Little_Helpers_spezial.save(confluence, x, destination, dest_space, parentId)}Tk.mainloop
on 2009-10-19 20:18
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.