search for: gtkbuttonnewwithlabel

Displaying 2 results from an estimated 2 matches for "gtkbuttonnewwithlabel".

2007 Mar 13
2
gtk button: how to create signal handler?
Hi Kindly correct me if I am posting a wrong query in the forum. I am trying to handle my "button:clicked" event. But not able to proceed further. Please help. Following is my code: library(RGtk2) win <- gtkWindowNew(type = NULL, show = TRUE) butt <- gtkButtonNewWithLabel("Submit", show = TRUE) win$Add(butt) Now I want to do something when my button is clicked. How can I grab the "clicked" signal and define actions against it? Thanks in advance. -- Regards Sarthi M. [[alternative HTML version deleted]]
2009 May 29
1
GTK Tooltips under Linux
Dear all, I want to set tool-tips for a gtkButton. I use the following code which works under Windows. However, it doesn't work under Linux. Any hints? Thanks. library(RGtk2) b<-gtkButtonNewWithLabel("OK") gtkTooltips()$setTip(b,"Memo for a Button.") gw <- gtkWindow(show=F) gw$Add(b) gw$Show() > sessionInfo() R version 2.8.0 Patched (2008-12-10 r47137) i686-pc-linux-gnu locale: LC_CTYPE=zh_CN.UTF-8;LC_NUMERIC=C;LC_TIME=zh_CN.UTF-8;LC_COLLATE=zh_CN.UTF-8;LC_MONETARY=C...