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

Hadley Wickham hadley at rice.edu
Tue May 10 15:32:54 CEST 2011


event$key() works fine, it's just text() that's problematic.  I'll
make a note to use Qt$Qt$Key_XXX in the future.

Hadley

On Tue, May 10, 2011 at 8:25 AM, Michael Lawrence
<lawrence.michael at gene.com> wrote:
> 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
>>
>
>
> _______________________________________________
> 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
>
>



-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/


More information about the Qtinterfaces-devel mailing list