Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Screenshot problem
#1
Hi,
When a user wants to save a document , that is shown in the tKinter canvas area of the gui,
he hits a button, and a screenshot is taken to the clipboard , and saved. (Using the box(...) method to copy only the canvas part.)
I'm using pyscreenshot. Works like a charm.
But, when the user does this a second time in a row, the app goes haywire. (eg. it starts a second instance of the app)

I'm testing what could cause this behaviour, and my question is:
Can I "flush" the clipboard of a PC, to empty it from the screenshot that was taken an saved a moment before.
I have not found anything, but maybe "flush" is the wrong term.
And maybe i have to look outside pyscreenshot.
ANy ideas ?
thx,
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
Screenshot problem - by DPaul - Mar-05-2024, 07:34 AM
RE: Screenshot problem - by Gribouillis - Mar-05-2024, 08:11 AM
RE: Screenshot problem - by DPaul - Mar-06-2024, 10:37 AM
RE: Screenshot problem - by DeaD_EyE - Mar-06-2024, 01:32 PM
RE: Screenshot problem - by DPaul - Mar-06-2024, 06:16 PM
RE: Screenshot problem - by DPaul - Mar-11-2024, 04:19 PM
RE: Screenshot problem - by DeaD_EyE - Mar-11-2024, 08:32 PM
RE: Screenshot problem - by DPaul - Mar-12-2024, 06:59 AM

Forum Jump:

User Panel Messages

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