[RQt-devel] Problem with event$text()

Michael Lawrence lawrence.michael at gene.com
Tue May 10 15:25:26 CEST 2011


What does calling event$key() return? Comparing that return value to the
Qt$Qt$Key_* values is really the most robust way to interpret keyboard
events. More readable in this case, too.

Michael

On Mon, May 9, 2011 at 11:17 AM, Hadley Wickham <hadley at rice.edu> wrote:

> See the attached script.
>
> Pressing the up key on my computer prints: [1] "\036"
> Pressing the up key on Garrett's computer prints: NULL
>
> Any idea what the problem might be?  sessionInfo's below.
>
> Hadley
>
>
> My sessionInfo:
> R version 2.13.0 (2011-04-13)
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>
> locale:
> [1] en_US.UTF-8
>
> attached base packages:
> [1] stats     graphics  utils     datasets  grDevices methods   base
>
> other attached packages:
> [1] qtpaint_0.7.21 qtbase_0.8-13  devtools_0.1
>
> Garret's sessionInfo()
>
> R version 2.13.0 (2011-04-13)
> Platform: i386-apple-darwin9.8.0/i386 (32-bit)
>
> locale:
> [1] en_US.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] SuppDists_1.1-8 qtpaint_0.7.22  qtbase_0.8-13
>
> loaded via a namespace (and not attached):
> [1] tools_2.13.0
>
> --
> Assistant Professor / Dobelman Family Junior Chair
> Department of Statistics / Rice University
> http://had.co.nz/
>
> _______________________________________________
> Qtinterfaces-devel mailing list
> Qtinterfaces-devel at lists.r-forge.r-project.org
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/qtinterfaces-devel/attachments/20110510/d27b8fb5/attachment.htm>


More information about the Qtinterfaces-devel mailing list