在 2013年1月8日星期二UTC+8下午9时19分51秒,Bruno Dupuis写道: > On Mon, Jan 07, 2013 at 08:20:28PM -0800, iMath wrote: > > > How to get the selected text of the webpage in chrome through python ? > > > > What you need is a way to get selected text from wherever it comes. The > > way to do this depends on your graphical environment. If you use X, i'd make a > > a quick and dirty call to xclip -o, although there must be a pure python > > implementation which in turn depends on the python framework you play > > with (gtk/qt/wx/tk/...). > > > > Short answer is : it depends on your system, and it may be easier and more > > portable if you use a graphical toolkit. > > > > cheers. > > > > -- > > Bruno Dupuis
I use it on WinXP , I also learned PyQt4 . can u help ? -- http://mail.python.org/mailman/listinfo/python-list