Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ponty
committed
Feb 15, 2016
1 parent
6aaf2fe
commit f12b2e0
Showing
3 changed files
with
51 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
''' | ||
two calls | ||
This can be error | ||
''' | ||
import logging | ||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
from easyprocess import EasyProcess | ||
from pyvirtualdisplay.smartdisplay import SmartDisplay | ||
|
||
backend1 = 'wx' | ||
backend2 = 'wx' | ||
|
||
|
||
with SmartDisplay(visible=0, bgcolor='black') as disp: | ||
disp.pyscreenshot_backend = backend1 | ||
with EasyProcess('xmessage test1'): | ||
img1 = disp.waitgrab() | ||
|
||
with SmartDisplay(visible=0, bgcolor='black') as disp: | ||
disp.pyscreenshot_backend = backend2 | ||
with EasyProcess('xmessage test2'): | ||
img2 = disp.waitgrab() | ||
|
||
img1.show() | ||
img2.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters