Python Forum

Full Version: [split] Is there some coding that will do the following in 3 separate events?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Is there some coding that will do the following in 3 separate events? -

(1) Select All
(2) Copy
(3) Paste

By the way I tried to find "Start New Topic" but could not find.
Select All what? Copy what? Paste what? More details please.
(Jul-19-2021, 02:12 PM)deanhystad Wrote: [ -> ]Select All what? Copy what? Paste what? More details please.

(1) Select All - text
(2) Copy - text
(3) Paste - text
Need way more information. Think about it - those functions, when applied to text (and not images) would typically be in a GUI or a web based application. How you do this depends on which GUI, what web framework, etc.
This will vary depending on the GUI toolkit you are using and which widgets you are using in the toolkit. A tkinter Entry widget works differently that a QT QLineEdit widget and even differently that a tkinter Text widget. And as jefsummers mentions a desktop application will use completely different tools (usually) than a web-based application.

Maybe you should describe what you are trying to do. Where this code is going to run. What libraries you are using. If you can post some code that would be even better.
(Jul-19-2021, 05:33 PM)jefsummers Wrote: [ -> ]Need way more information. Think about it - those functions, when applied to text (and not images) would typically be in a GUI or a web based application. How you do this depends on which GUI, what web framework, etc.

Thanks @jefsummers. You "thinking about it" & me "thinking about it" is likely to vary considerably because your knowledge of Python is likely to be far greater than mine. Im a newbie.

We are building a website using CodeIgniter & PHP where the former has limitations. The GUI would be a browser. CodeIgniter has the capability of opening & closing text files, & our system has created a file containing ONLY a text link, so we need a facility that will open the text file, (1) select the contents (2) copy the contents. - Close the file & Open another - (3) paste the clipboard contents. - Save & close the file. Im not sure if CodeIgniter would save upon closing but we can investigate that if & when we get the Select, Copy & Paste working. CodeIgniter already uses Python.
(Jul-19-2021, 05:54 PM)deanhystad Wrote: [ -> ]This will vary depending on the GUI toolkit you are using and which widgets you are using in the toolkit. A tkinter Entry widget works differently that a QT QLineEdit widget and even differently that a tkinter Text widget. And as jefsummers mentions a desktop application will use completely different tools (usually) than a web-based application.

Maybe you should describe what you are trying to do. Where this code is going to run. What libraries you are using. If you can post some code that would be even better.

Thanks @deanhystad. Does my reply to @jefsummers answer your query? If not then ask again.
Quote:CodeIgniter already uses Python

No, CodeIgniter is a PHP framework
Are you looking to automate other software?
Something like pywinauto or PyAutoGUI
(Jul-19-2021, 07:17 PM)Axel_Erfurt Wrote: [ -> ]
Quote:CodeIgniter already uses Python

No, CodeIgniter is a PHP framework

Languages used in CodeIgniter
PHP 97.3%
HTML 1.4%
Python 0.6%
JavaScript 0.3%
Makefile 0.2%
CSS 0.1%
Shell 0.1%
Pages: 1 2 3