0

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.

    library(tcltk2)

    win1 <- tktoplevel()

    butOK <- tk2button(win1, text = "TEST", width = 77)

    tkgrid(butOK)
Rodrigo_BC
  • 161
  • 11
  • You probably should use `pack` for this. But if you would insist in using `grid` you need to use `columnconfigure` as well, since you need to determine how the extra space will be consumed. [This answer](https://stackoverflow.com/a/63536506/13629335) shows an overview in [tag:python] but it is equally applicable for [tag:R] but written a little bit different. – Thingamabobs Mar 11 '23 at 16:09

0 Answers0