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 combinations tend to be specific to the operating system yo use, and are not available to the standard Python library, that AFAIK is more concerned with chars than with keys. In the context of Python, i suppose that TCL/Tk probably has this feature and windowing environments for Python like wxPython, PyGTK, and PyQt. So, dear Ley Yang, would you mind please telling us what's the OS you're using ? Maybe Window ? And please comment more about your programming experience. This list has a specific focus, but the experts here are certainly able to recommend you to another list, if that's the case. I wish a nice week to everybody everywhere. 8-) All the best, Hilton On Sun, Sep 28, 2014 at 9:07 PM, Dave Angel <da...@davea.name> wrote: > lei yang <yanglei.f...@gmail.com> 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 "newlining"? Can you post some example code? > > "It" displays with one line in Windows. Using what command, > TYPE? If you're using a particular program, such as Lotus 123, > you should specifit. Likewise in Linux, you might be using Open > Office, or Libre Office Calc, or ... > > I can't see what relevancy a keystroke combination has when you're > presumably writing a spreadsheet file with code. You should > probably concentrate on what data in the spreadsheet is > desired. > > -- > DaveA > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor