[R] GTK Tooltips under Linux
ronggui.huang at gmail.com
Fri May 29 20:24:43 CEST 2009
Noted with thanks.
2009/5/29 Michael Lawrence <mflawren at fhcrc.org>:
> On Thu, May 28, 2009 at 7:35 PM, Ronggui Huang <ronggui.huang at gmail.com>
>> 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.
> Unfortunately, on platforms besides Windows, the event loop runs via an
> input handler connected to X11. If you're waiting for a tooltip to show up,
> there's obviously no input, so the event loop is not iterated.
> I think I could fix this by creating a separate thread that writes to a file
> descriptor connected to an input handler. I'll try to do that.
>> gtkTooltips()$setTip(b,"Memo for a Button.")
>> gw <- gtkWindow(show=F)
>> > sessionInfo()
>> R version 2.8.0 Patched (2008-12-10 r47137)
>> attached base packages:
>>  stats graphics grDevices utils datasets methods base
>> other attached packages:
>>  RGtk2_2.12.11 RQDA_0.1-8 igraph_0.5.2-2
>>  gWidgetsRGtk2_0.0-51 gWidgets_0.0-35 RSQLite_0.7-1
>>  DBI_0.2-4
>> loaded via a namespace (and not attached):
>>  tools_2.8.0
>> HUANG Ronggui, Wincent
>> PhD Candidate
>> Dept of Public and Social Administration
>> City University of Hong Kong
>> Home page: http://asrr.r-forge.r-project.org/rghuang.html
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
HUANG Ronggui, Wincent
Dept of Public and Social Administration
City University of Hong Kong
Home page: http://asrr.r-forge.r-project.org/rghuang.html
More information about the R-help