Re: [R] tcl tk: set the position button

2023-03-14 Thread Karim Mezhoud
Hi Rodrigo, Try to add tkgrid.configuration and change values as you want. library(tcltk2) win1 <- tktoplevel() butOK <- tk2button(win1, text = "TEST", width = 77) tkgrid(whiteSPACE, butOK, columnspan=2, padx=20, pady=10) tkgrid.configure(butOK,rowspan=2,columnspan= 3,sticky="nsew") Here is the d

Re: [R] tcl tk: set the position button

2023-03-13 Thread John Fox
Dear Rodrigo, Try tkwm.geometry(win1, "-0+0"), which should position win1 at the top right. I hope this helps, John -- John Fox, Professor Emeritus McMaster University Hamilton, Ontario, Canada web: https://socialsciences.mcmaster.ca/jfox/ On 2023-03-12 8:41 p.m., Rodrigo Badilla wrote: Hi

[R] tcl tk: set the position button

2023-03-13 Thread Rodrigo Badilla
Hi all, I am using tcltk2 library to show buttons and messages. Everything work fine but I would like set the tk2button to the right of my screen, by default it display at the left of my screen. my script example: library(tcltk2) win1 <- tktoplevel() butOK <- tk2button(win1, text = "TEST", width