Try tkwindow.create(text, "end", window = button)
instead of tkcreate(text, "window", "end", window = button) -Ben -----Original Message----- From: John Zhang [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 11:32 AM To: [EMAIL PROTECTED] Subject: [R] Re: Embedding windows in a text widget Could someone tell me how to embed windows in a text box using "tkcreate" command of R tcltk package? I tried the following and was not successful; base <- tktoplevel() text <- tktext(base, width = 30, height = 10) tkpack(text) button <- tkbutton(text, text = "try") tkcreate(text, "window", "end", window = button) Thanks. JZ ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
