Re: [Tutor] how to express shift+enter in python

2014-09-28 Thread Hilton Fernandes
Dear all, the reading of specific keys is sometimes a necessity. For instance: some text fields will let you insert a newline in the block of text if you press the combination Shift+Enter, while pressing the sole Enter key will cause the whole text to be transmitted. Unfortunately, reading these

Re: [Tutor] how to express shift+enter in python

2014-09-28 Thread Dave Angel
lei yang Wrote in message: > > I just use "xlwt" lib to newline in one cell, I find it display with one line > in windows but works in linux, so I guess it maybe"shift+enter" to newline Xlwt isn't in the Python stdlib, so some other forum is probably preferable to tutor. Just how are you

Re: [Tutor] how to express shift+enter in python

2014-09-28 Thread Alex Kleider
On 2014-09-28 07:53, lei yang wrote: Hi expert, How to express shift+enter in python ? Have you tried ^J or chr(10)? i.e. shift_plus_enter = chr(10) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.p

Re: [Tutor] how to express shift+enter in python

2014-09-28 Thread Steven D'Aprano
On Sun, Sep 28, 2014 at 11:11:26PM +0800, lei yang wrote: > Hi Chris, > > I just use "xlwt" lib to newline in one cell, I find it display with one > line in windows but works in linux, so I guess it maybe"shift+enter" to > newline I am afraid I have no idea what you are talking about. Can you sho

Re: [Tutor] how to express shift+enter in python

2014-09-28 Thread lei yang
Hi Chris, I just use "xlwt" lib to newline in one cell, I find it display with one line in windows but works in linux, so I guess it maybe"shift+enter" to newline Lei On Sun, Sep 28, 2014 at 11:04 PM, Chris “Kwpolska” Warrick < kwpol...@gmail.com> wrote: > On Sun, Sep 28, 2014 at 4:53 PM, lei

Re: [Tutor] how to express shift+enter in python

2014-09-28 Thread Chris “Kwpolska” Warrick
On Sun, Sep 28, 2014 at 4:53 PM, lei yang wrote: > Hi expert, > > How to express shift+enter in python ? > > Thanks What do you want to express, exactly? This key combination can have multiple meanings and ways to achieve it, depending on your needs. Do you want to send the key combination to a

[Tutor] how to express shift+enter in python

2014-09-28 Thread lei yang
Hi expert, How to express shift+enter in python ? Thanks ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor