Python Forum
[split] Is there some coding that will do the following in 3 separate events?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Is there some coding that will do the following in 3 separate events?
#1
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.
Yoriz write Jul-19-2021, 11:46 AM:
I have split your post into a new thread.
please see Posting a new thread
Reply
#2
Select All what? Copy what? Paste what? More details please.
Reply
#3
(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
Reply
#4
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.
Reply
#5
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.
Reply
#6
(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.
Reply
#7
(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.
Reply
#8
Quote:CodeIgniter already uses Python

No, CodeIgniter is a PHP framework
Reply
#9
Are you looking to automate other software?
Something like pywinauto or PyAutoGUI
Reply
#10
(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%
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Split Bytearray into separate Files by Hex delimter lastyle 5 2,646 Mar-09-2023, 07:49 AM
Last Post: bowlofred
  Python Split json into separate json based on node value CzarR 1 5,595 Jul-08-2022, 07:55 PM
Last Post: Larz60+
  importing functions from a separate python file in a separate directory Scordomaniac 3 1,369 May-17-2022, 07:49 AM
Last Post: Pedroski55
  wait for the first of these events Skaperen 4 1,941 Mar-07-2022, 08:46 PM
Last Post: Gribouillis
  [split] Very basic coding issue aary 4 2,466 Jun-03-2020, 11:59 AM
Last Post: buran
  Simulating events using Hawkes akshit2291 1 2,141 Sep-25-2018, 04:17 AM
Last Post: Larz60+
  win32com Events not catching dageci 0 3,748 Aug-06-2018, 03:18 PM
Last Post: dageci

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020