Diff of the two buildlogs: -- --- b1/build.log 2020-08-14 20:43:43.943099378 +0000 +++ b2/build.log 2020-08-15 01:01:53.551519141 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Aug 14 07:29:56 -12 2020 -I: pbuilder-time-stamp: 1597433396 +I: Current time: Fri Sep 17 17:07:17 +14 2021 +I: pbuilder-time-stamp: 1631848037 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/var/lib/jenkins/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Tue Apr 2 10:09:47 2019 -12 +gpgv: Signature made Wed Apr 3 12:09:47 2019 +14 gpgv: using RSA key 6E7434F5897D43B17FCD57B753D5BC64B52378A2 gpgv: issuer "swt@techie.net" gpgv: Can't check signature: No public key @@ -36,136 +36,170 @@ dpkg-source: info: applying fix-build-sip-4.19.14-3.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2882/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/24411/tmp/hooks/D01_modify_environment starting +debug: Running on codethink-sled11-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/24411/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/24411/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.0.3(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=8' - DISTRIBUTION='' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2882' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=24411 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.nByIuq7LLC/pbuilderrc_qhAP --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.nByIuq7LLC/b1 --logfile b1/build.log wxpython4.0_4.0.4+dfsg-2.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.nByIuq7LLC/pbuilderrc_GY2F --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.nByIuq7LLC/b2 --logfile b2/build.log wxpython4.0_4.0.4+dfsg-2.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink-sled14-arm64 4.4.0-186-generic #216-Ubuntu SMP Wed Jul 1 05:35:21 UTC 2020 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.4.0-186-generic #216-Ubuntu SMP Wed Jul 1 05:35:21 UTC 2020 aarch64 GNU/Linux I: ls -l /bin total 4928 - -rwxr-xr-x 1 root root 1216928 Apr 17 2019 bash - -rwxr-xr-x 3 root root 34808 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 34808 Jul 10 2019 bzcat - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2227 Jul 10 2019 bzdiff - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Jun 24 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3641 Jul 10 2019 bzgrep - -rwxr-xr-x 3 root root 34808 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 14264 Jul 10 2019 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 10 2019 bzmore - -rwxr-xr-x 1 root root 35576 Feb 28 2019 cat - -rwxr-xr-x 1 root root 60256 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 56096 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 64368 Feb 28 2019 chown - -rwxr-xr-x 1 root root 134632 Feb 28 2019 cp - -rwxr-xr-x 1 root root 129536 Jan 17 2019 dash - -rwxr-xr-x 1 root root 97136 Feb 28 2019 date - -rwxr-xr-x 1 root root 76736 Feb 28 2019 dd - -rwxr-xr-x 1 root root 93752 Feb 28 2019 df - -rwxr-xr-x 1 root root 138848 Feb 28 2019 dir - -rwxr-xr-x 1 root root 75984 Jan 9 2019 dmesg - lrwxrwxrwx 1 root root 8 Sep 26 2018 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Sep 26 2018 domainname -> hostname - -rwxr-xr-x 1 root root 31368 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 27256 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 68792 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 34824 Apr 22 07:38 fusermount - -rwxr-xr-x 1 root root 174304 Jan 7 2019 grep - -rwxr-xr-x 2 root root 2345 Jan 5 2019 gunzip - -rwxr-xr-x 1 root root 6375 Jan 5 2019 gzexe - -rwxr-xr-x 1 root root 89656 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 18440 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 64472 Feb 28 2019 ln - -rwxr-xr-x 1 root root 52544 Jul 26 2018 login - -rwxr-xr-x 1 root root 138848 Feb 28 2019 ls - -rwxr-xr-x 1 root root 108552 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 76840 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 64480 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 39736 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 38840 Jan 9 2019 more - -rwsr-xr-x 1 root root 47112 Jan 9 2019 mount - -rwxr-xr-x 1 root root 14344 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 138736 Feb 28 2019 mv - lrwxrwxrwx 1 root root 8 Sep 26 2018 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Feb 14 2019 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 35560 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 43712 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 68440 Feb 28 2019 rm - -rwxr-xr-x 1 root root 39624 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 19144 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 114016 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 12 20:27 sh -> dash - -rwxr-xr-x 1 root root 31384 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 72480 Feb 28 2019 stty - -rwsr-xr-x 1 root root 59424 Jan 9 2019 su - -rwxr-xr-x 1 root root 31416 Feb 28 2019 sync - -rwxr-xr-x 1 root root 449416 Apr 23 2019 tar - -rwxr-xr-x 1 root root 10560 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 88968 Feb 28 2019 touch - -rwxr-xr-x 1 root root 27256 Feb 28 2019 true - -rwxr-xr-x 1 root root 14264 Apr 22 07:38 ulockmgr_server - -rwsr-xr-x 1 root root 30728 Jan 9 2019 umount - -rwxr-xr-x 1 root root 31384 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 138848 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 34824 Jan 9 2019 wdctl - -rwxr-xr-x 1 root root 946 Jan 21 2019 which - lrwxrwxrwx 1 root root 8 Sep 26 2018 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1983 Jan 5 2019 zcat - -rwxr-xr-x 1 root root 1677 Jan 5 2019 zcmp - -rwxr-xr-x 1 root root 5879 Jan 5 2019 zdiff - -rwxr-xr-x 1 root root 29 Jan 5 2019 zegrep - -rwxr-xr-x 1 root root 29 Jan 5 2019 zfgrep - -rwxr-xr-x 1 root root 2080 Jan 5 2019 zforce - -rwxr-xr-x 1 root root 7584 Jan 5 2019 zgrep - -rwxr-xr-x 1 root root 2205 Jan 5 2019 zless - -rwxr-xr-x 1 root root 1841 Jan 5 2019 zmore - -rwxr-xr-x 1 root root 4552 Jan 5 2019 znew -I: user script /srv/workspace/pbuilder/2882/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1216928 Apr 18 2019 bash + -rwxr-xr-x 3 root root 34808 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 34808 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 34808 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 14264 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 35576 Mar 1 2019 cat + -rwxr-xr-x 1 root root 60256 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 56096 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 64368 Mar 1 2019 chown + -rwxr-xr-x 1 root root 134632 Mar 1 2019 cp + -rwxr-xr-x 1 root root 129536 Jan 18 2019 dash + -rwxr-xr-x 1 root root 97136 Mar 1 2019 date + -rwxr-xr-x 1 root root 76736 Mar 1 2019 dd + -rwxr-xr-x 1 root root 93752 Mar 1 2019 df + -rwxr-xr-x 1 root root 138848 Mar 1 2019 dir + -rwxr-xr-x 1 root root 75984 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 31368 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 27256 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 68792 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 34824 Apr 23 2020 fusermount + -rwxr-xr-x 1 root root 174304 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 89656 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 18440 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 64472 Mar 1 2019 ln + -rwxr-xr-x 1 root root 52544 Jul 27 2018 login + -rwxr-xr-x 1 root root 138848 Mar 1 2019 ls + -rwxr-xr-x 1 root root 108552 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 76840 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 64480 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 39736 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 38840 Jan 10 2019 more + -rwsr-xr-x 1 root root 47112 Jan 10 2019 mount + -rwxr-xr-x 1 root root 14344 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 138736 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 35560 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 43712 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 68440 Mar 1 2019 rm + -rwxr-xr-x 1 root root 39624 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 19144 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 114016 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Sep 17 17:07 sh -> bash + lrwxrwxrwx 1 root root 4 Sep 16 04:48 sh.distrib -> dash + -rwxr-xr-x 1 root root 31384 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 72480 Mar 1 2019 stty + -rwsr-xr-x 1 root root 59424 Jan 10 2019 su + -rwxr-xr-x 1 root root 31416 Mar 1 2019 sync + -rwxr-xr-x 1 root root 449416 Apr 24 2019 tar + -rwxr-xr-x 1 root root 10560 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 88968 Mar 1 2019 touch + -rwxr-xr-x 1 root root 27256 Mar 1 2019 true + -rwxr-xr-x 1 root root 14264 Apr 23 2020 ulockmgr_server + -rwsr-xr-x 1 root root 30728 Jan 10 2019 umount + -rwxr-xr-x 1 root root 31384 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 138848 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 34824 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/24411/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -734,7 +768,7 @@ Get: 471 http://deb.debian.org/debian buster/main arm64 xauth arm64 1:1.0.10-1 [38.2 kB] Get: 472 http://deb.debian.org/debian buster/main arm64 xserver-common all 2:1.20.4-1 [2235 kB] Get: 473 http://deb.debian.org/debian buster/main arm64 xvfb arm64 2:1.20.4-1 [2934 kB] -Fetched 237 MB in 28s (8360 kB/s) +Fetched 237 MB in 14s (17.3 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libapparmor1:arm64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19168 files and directories currently installed.) @@ -2707,7 +2741,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/wxpython4.0-4.0.4+dfsg/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/wxpython4.0-4.0.4+dfsg/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package wxpython4.0 dpkg-buildpackage: info: source version 4.0.4+dfsg-2 dpkg-buildpackage: info: source distribution unstable @@ -2727,7 +2761,7 @@ Running command: clean_wx Finished command: clean_wx (0.0s) Running command: clean_py -Finished command: clean_py (0.2s) +Finished command: clean_py (0.3s) Done! I: pybuild base:217: python3.7 build.py clean Will build using: "/usr/bin/python3.7" @@ -2756,10 +2790,10 @@ Running command: dox bash ./regen.sh xml -Finished command: dox (30.239s) +Finished command: dox (38.440s) Running command: touch touch etg/*.py -Finished command: touch (0.6s) +Finished command: touch (0.9s) Running command: etg "/usr/bin/python2.7" etg/_core.py --sip --nodoc "/usr/bin/python2.7" etg/_xrc.py --sip --nodoc @@ -3033,9 +3067,9 @@ "/usr/bin/python2.7" etg/richtextstyledlg.py --sip --nodoc "/usr/bin/python2.7" etg/richtextsymboldlg.py --sip --nodoc "/usr/bin/python2.7" etg/richtextformatdlg.py --sip --nodoc -Finished command: etg (5m29.28s) +Finished command: etg (7m13.966s) Running command: sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpDYLja7 -b sip/cpp/_core.sbf -X pycode_core:wx/core.py sip/gen/_core.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp_WQD12 -b sip/cpp/_core.sbf -X pycode_core:wx/core.py sip/gen/_core.sip sipAPI_core.h is a new file, copying... sip_corewxIntPtr.cpp is a new file, copying... sip_corewxUIntPtr.cpp is a new file, copying... @@ -3493,7 +3527,7 @@ sip_corewxModalDialogHook.cpp is a new file, copying... sip_corewxUniChar.cpp is a new file, copying... sip_corecmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp0_IRGL -b sip/cpp/_richtext.sbf -X pycode_richtext:wx/richtext.py sip/gen/_richtext.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpEH8HR6 -b sip/cpp/_richtext.sbf -X pycode_richtext:wx/richtext.py sip/gen/_richtext.sip sipAPI_richtext.h is a new file, copying... sip_richtextwxRichTextFloatCollector.cpp is a new file, copying... sip_richtextwxTextAttrDimension.cpp is a new file, copying... @@ -3571,7 +3605,7 @@ sip_richtextwxRichTextFormattingDialogFactory.cpp is a new file, copying... sip_richtextwxRichTextFormattingDialog.cpp is a new file, copying... sip_richtextcmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp0TUh2O -b sip/cpp/_html.sbf -X pycode_html:wx/html.py sip/gen/_html.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpXxmSRX -b sip/cpp/_html.sbf -X pycode_html:wx/html.py sip/gen/_html.sip sipAPI_html.h is a new file, copying... sip_htmlwxHtmlSelection.cpp is a new file, copying... sip_htmlwxHtmlRenderingState.cpp is a new file, copying... @@ -3611,7 +3645,7 @@ sip_htmlwxHtmlListBox.cpp is a new file, copying... sip_htmlwxSimpleHtmlListBox.cpp is a new file, copying... sip_htmlcmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpRgzl4n -b sip/cpp/_html2.sbf -X pycode_html2:wx/html2.py sip/gen/_html2.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpwAAa0z -b sip/cpp/_html2.sbf -X pycode_html2:wx/html2.py sip/gen/_html2.sip sipAPI_html2.h is a new file, copying... sip_html2wxWebViewHistoryItem.cpp is a new file, copying... sip_html2wxWebViewHandler.cpp is a new file, copying... @@ -3621,7 +3655,7 @@ sip_html2wxWebViewEvent.cpp is a new file, copying... sip_html2wxWebViewFactory.cpp is a new file, copying... sip_html2cmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpVWqDGh -b sip/cpp/_ribbon.sbf -X pycode_ribbon:wx/ribbon.py sip/gen/_ribbon.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpv8sJxX -b sip/cpp/_ribbon.sbf -X pycode_ribbon:wx/ribbon.py sip/gen/_ribbon.sip sipAPI_ribbon.h is a new file, copying... sip_ribbonwxRibbonControl.cpp is a new file, copying... sip_ribbonwxRibbonPage.cpp is a new file, copying... @@ -3644,28 +3678,28 @@ sip_ribbonwxRibbonToolBar.cpp is a new file, copying... sip_ribbonwxRibbonToolBarEvent.cpp is a new file, copying... sip_ribboncmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpc2Aw5H -b sip/cpp/_media.sbf -X pycode_media:wx/media.py sip/gen/_media.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp6HsaEh -b sip/cpp/_media.sbf -X pycode_media:wx/media.py sip/gen/_media.sip sipAPI_media.h is a new file, copying... sip_mediawxMediaCtrl.cpp is a new file, copying... sip_mediawxMediaEvent.cpp is a new file, copying... sip_mediacmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp5dgn5j -b sip/cpp/_webkit.sbf -X pycode_webkit:wx/webkit.py sip/gen/_webkit.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpVE8tZU -b sip/cpp/_webkit.sbf -X pycode_webkit:wx/webkit.py sip/gen/_webkit.sip sipAPI_webkit.h is a new file, copying... sip_webkitwxWebKitCtrl.cpp is a new file, copying... sip_webkitwxWebKitBeforeLoadEvent.cpp is a new file, copying... sip_webkitwxWebKitStateChangedEvent.cpp is a new file, copying... sip_webkitwxWebKitNewWindowEvent.cpp is a new file, copying... sip_webkitcmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpyz4cFZ -b sip/cpp/_msw.sbf -X pycode_msw:wx/msw.py sip/gen/_msw.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpXM74Z7 -b sip/cpp/_msw.sbf -X pycode_msw:wx/msw.py sip/gen/_msw.sip sipAPI_msw.h is a new file, copying... sip_mswwxPyAxBaseWindow.cpp is a new file, copying... sip_mswcmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp6tkaZ8 -b sip/cpp/_glcanvas.sbf -X pycode_glcanvas:wx/glcanvas.py sip/gen/_glcanvas.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp2Poug6 -b sip/cpp/_glcanvas.sbf -X pycode_glcanvas:wx/glcanvas.py sip/gen/_glcanvas.sip sipAPI_glcanvas.h is a new file, copying... sip_glcanvaswxGLContext.cpp is a new file, copying... sip_glcanvaswxGLCanvas.cpp is a new file, copying... sip_glcanvascmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpGpGzII -b sip/cpp/_propgrid.sbf -X pycode_propgrid:wx/propgrid.py sip/gen/_propgrid.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp1Wvg3S -b sip/cpp/_propgrid.sbf -X pycode_propgrid:wx/propgrid.py sip/gen/_propgrid.sip sipAPI_propgrid.h is a new file, copying... sip_propgridwxPGVariant.cpp is a new file, copying... sip_propgridwxPGVariantList.cpp is a new file, copying... @@ -3730,7 +3764,7 @@ sip_propgridwxPropertyGridPage.cpp is a new file, copying... sip_propgridwxPropertyGridManager.cpp is a new file, copying... sip_propgridcmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpsEZavj -b sip/cpp/_dataview.sbf -X pycode_dataview:wx/dataview.py sip/gen/_dataview.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpevNiOm -b sip/cpp/_dataview.sbf -X pycode_dataview:wx/dataview.py sip/gen/_dataview.sip sipAPI_dataview.h is a new file, copying... sip_dataviewwxDVCVariant.cpp is a new file, copying... sip_dataviewwxVariantVector.cpp is a new file, copying... @@ -3765,7 +3799,7 @@ sip_dataviewwxTreeListCtrl.cpp is a new file, copying... sip_dataviewwxTreeListEvent.cpp is a new file, copying... sip_dataviewcmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp1KEGeN -b sip/cpp/_grid.sbf -X pycode_grid:wx/grid.py sip/gen/_grid.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp3Z3aTN -b sip/cpp/_grid.sbf -X pycode_grid:wx/grid.py sip/gen/_grid.sip sipAPI_grid.h is a new file, copying... sip_gridwxGridCellCoords.cpp is a new file, copying... sip_gridwxGridCellRenderer.cpp is a new file, copying... @@ -3805,7 +3839,7 @@ sip_gridwxGridEditorCreatedEvent.cpp is a new file, copying... sip_gridwxGridCellCoordsArray.cpp is a new file, copying... sip_gridcmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpytxtj3 -b sip/cpp/_adv.sbf -X pycode_adv:wx/adv.py sip/gen/_adv.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp21KmFE -b sip/cpp/_adv.sbf -X pycode_adv:wx/adv.py sip/gen/_adv.sip sipAPI_adv.h is a new file, copying... sip_advwxAboutDialogInfo.cpp is a new file, copying... sip_advwxExtHelpController.cpp is a new file, copying... @@ -3847,7 +3881,7 @@ sip_advwxPseudoDC.cpp is a new file, copying... sip_advwxPropertySheetDialog.cpp is a new file, copying... sip_advcmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpES3onH -b sip/cpp/_aui.sbf -X pycode_aui:wx/aui.py sip/gen/_aui.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpokAZg4 -b sip/cpp/_aui.sbf -X pycode_aui:wx/aui.py sip/gen/_aui.sip sipAPI_aui.h is a new file, copying... sip_auiwxAuiManager.cpp is a new file, copying... sip_auiwxAuiPaneInfo.cpp is a new file, copying... @@ -3884,25 +3918,25 @@ sip_auiwxAuiMDIChildFrame.cpp is a new file, copying... sip_auiwxAuiMDIClientWindow.cpp is a new file, copying... sip_auicmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpnESWKa -b sip/cpp/_xml.sbf -X pycode_xml:wx/xml.py sip/gen/_xml.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpJ86XmT -b sip/cpp/_xml.sbf -X pycode_xml:wx/xml.py sip/gen/_xml.sip sipAPI_xml.h is a new file, copying... sip_xmlwxXmlNode.cpp is a new file, copying... sip_xmlwxXmlAttribute.cpp is a new file, copying... sip_xmlwxXmlDocument.cpp is a new file, copying... sip_xmlcmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpKJBpxy -b sip/cpp/_stc.sbf -X pycode_stc:wx/stc.py sip/gen/_stc.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpcvbbmP -b sip/cpp/_stc.sbf -X pycode_stc:wx/stc.py sip/gen/_stc.sip sipAPI_stc.h is a new file, copying... sip_stcwxStyledTextCtrl.cpp is a new file, copying... sip_stcwxStyledTextEvent.cpp is a new file, copying... sip_stccmodule.cpp is a new file, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp60I4tM -b sip/cpp/_xrc.sbf -X pycode_xrc:wx/xrc.py sip/gen/_xrc.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpnUPR_J -b sip/cpp/_xrc.sbf -X pycode_xrc:wx/xrc.py sip/gen/_xrc.sip sipAPI_xrc.h is a new file, copying... sip_xrcwxAnimation.cpp is a new file, copying... sip_xrcwxXmlResource.cpp is a new file, copying... sip_xrcwxXmlResourceHandler.cpp is a new file, copying... sip_xrcwxXmlSubclassFactory.cpp is a new file, copying... sip_xrccmodule.cpp is a new file, copying... -Finished command: sip (2m39.966s) +Finished command: sip (3m58.150s) Running command: build_py Checking for /build/wxpython4.0-4.0.4+dfsg/bin/waf-2.0.8... "/usr/bin/python2.7" /build/wxpython4.0-4.0.4+dfsg/bin/waf-2.0.8 --wx_config=wx-config --gtk3 --python="/usr/bin/python2.7" --out=build/waf/2.7/gtk3 configure build @@ -3930,7 +3964,7 @@ Finding libs for WXRIBBON : yes Finding libs for WXPROPGRID : yes Finding libs for WXAUI : yes -'configure' finished successfully (2.259s) +'configure' finished successfully (7.093s) Waf: Entering directory `/build/wxpython4.0-4.0.4+dfsg/build/waf/2.7/gtk3' [ 1/856] Compiling sip/cpp/sip_corewxMenuList_iterator.cpp [ 2/856] Compiling sip/cpp/sip_corewxFileSystemWatcher.cpp @@ -3947,19 +3981,19 @@ [ 13/856] Compiling sip/cpp/sip_corewxMemoryDC.cpp [ 14/856] Compiling sip/cpp/sip_corewxLongLong.cpp [ 15/856] Compiling sip/cpp/sip_corewxLogWindow.cpp -[ 16/856] Compiling sip/cpp/sip_corewxFileDirPickerEvent.cpp -[ 17/856] Compiling sip/cpp/sip_corewxArchiveFSHandler.cpp +[ 16/856] Compiling sip/cpp/sip_corewxArchiveFSHandler.cpp +[ 17/856] Compiling sip/cpp/sip_corewxLogTextCtrl.cpp [ 18/856] Compiling sip/cpp/sip_corewxLogStderr.cpp [ 19/856] Compiling sip/cpp/sip_corewxFileDialog.cpp [ 20/856] Compiling sip/cpp/sip_corewxComboCtrl.cpp [ 21/856] Compiling sip/cpp/sip_corewxLogRecordInfo.cpp -[ 22/856] Compiling sip/cpp/sip_corewxFileDataObject.cpp -[ 23/856] Compiling sip/cpp/sip_corewxLogNull.cpp -[ 24/856] Compiling sip/cpp/sip_corewxLogTextCtrl.cpp +[ 22/856] Compiling sip/cpp/sip_corewxLogNull.cpp +[ 23/856] Compiling sip/cpp/sip_corewxFileDataObject.cpp +[ 24/856] Compiling sip/cpp/sip_corewxLogInterposerTemp.cpp [ 25/856] Compiling sip/cpp/sip_corewxLogInterposer.cpp -[ 26/856] Compiling sip/cpp/sip_corewxFileCtrlEvent.cpp -[ 27/856] Compiling sip/cpp/sip_corewxComboBox.cpp -[ 28/856] Compiling sip/cpp/sip_corewxBrush.cpp +[ 26/856] Compiling sip/cpp/sip_corewxFileDirPickerEvent.cpp +[ 27/856] Compiling sip/cpp/sip_corewxFileCtrlEvent.cpp +[ 28/856] Compiling sip/cpp/sip_corewxComboBox.cpp [ 29/856] Compiling sip/cpp/sip_corewxLogGui.cpp [ 30/856] Compiling sip/cpp/sip_corewxLogFormatter.cpp ../../../../sip/cpp/sip_corewxComboCtrl.cpp: In function 'PyObject* meth_wxComboCtrl_GetTextIndent(PyObject*, PyObject*)': @@ -3991,64 +4025,70 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ -[ 31/856] Compiling sip/cpp/sip_corewxLogInterposerTemp.cpp +[ 31/856] Compiling sip/cpp/sip_corewxBrush.cpp [ 32/856] Compiling sip/cpp/sip_corewxXPMHandler.cpp [ 33/856] Compiling sip/cpp/sip_corewxLogChain.cpp -[ 34/856] Compiling sip/cpp/sip_corewxWrapSizer.cpp -[ 35/856] Compiling sip/cpp/sip_corewxLogBuffer.cpp -[ 36/856] Compiling sip/cpp/sip_corewxFileConfig.cpp -[ 37/856] Compiling sip/cpp/sip_corewxColourPickerEvent.cpp +[ 34/856] Compiling sip/cpp/sip_corewxLogBuffer.cpp +[ 35/856] Compiling sip/cpp/sip_corewxWrapSizer.cpp +[ 36/856] Compiling sip/cpp/sip_corewxColourPickerEvent.cpp +[ 37/856] Compiling sip/cpp/sip_corewxFileCtrl.cpp [ 38/856] Compiling sip/cpp/sip_corewxWithImages.cpp [ 39/856] Compiling sip/cpp/sip_corewxWindowModalDialogEvent.cpp [ 40/856] Compiling sip/cpp/sip_corewxWindowList_iterator.cpp [ 41/856] Compiling sip/cpp/sip_corewxLog.cpp -[ 42/856] Compiling sip/cpp/sip_corewxWindowList.cpp -[ 43/856] Compiling sip/cpp/sip_corewxLocale.cpp -[ 44/856] Compiling sip/cpp/sip_corewxFSFile.cpp -[ 45/856] Compiling sip/cpp/sip_corewxWindowDisabler.cpp -[ 46/856] Compiling sip/cpp/sip_corewxWindowIDRef.cpp +[ 42/856] Compiling sip/cpp/sip_corewxLocale.cpp +[ 43/856] Compiling sip/cpp/sip_corewxFSFile.cpp +[ 44/856] Compiling sip/cpp/sip_corewxWindowList.cpp +[ 45/856] Compiling sip/cpp/sip_corewxWindowIDRef.cpp +[ 46/856] Compiling sip/cpp/sip_corewxWindowDisabler.cpp [ 47/856] Compiling sip/cpp/sip_corewxListbook.cpp [ 48/856] Compiling sip/cpp/sip_corewxWindowDestroyEvent.cpp -[ 49/856] Compiling sip/cpp/sip_corewxListView.cpp -[ 50/856] Compiling sip/cpp/sip_corewxWindowDC.cpp -[ 51/856] Compiling sip/cpp/sip_corewxExecuteEnv.cpp -[ 52/856] Compiling sip/cpp/sip_corewxColourPickerCtrl.cpp +[ 49/856] Compiling sip/cpp/sip_corewxWindowDC.cpp +[ 50/856] Compiling sip/cpp/sip_corewxListView.cpp +[ 51/856] Compiling sip/cpp/sip_corewxColourPickerCtrl.cpp +[ 52/856] Compiling sip/cpp/sip_corewxExecuteEnv.cpp [ 53/856] Compiling sip/cpp/sip_corewxBoxSizer.cpp [ 54/856] Compiling sip/cpp/sip_corewxAppTraits.cpp [ 55/856] Compiling sip/cpp/sip_corewxActivateEvent.cpp -[ 56/856] Compiling sip/cpp/sip_corewxWindowChildrenRepositioningGuard.cpp -[ 57/856] Compiling sip/cpp/sip_corewxWindowCreateEvent.cpp -[ 58/856] Compiling sip/cpp/sip_corewxListItemAttr.cpp +[ 56/856] Compiling sip/cpp/sip_corewxWindowCreateEvent.cpp +[ 57/856] Compiling sip/cpp/sip_corewxListItemAttr.cpp +[ 58/856] Compiling sip/cpp/sip_corewxWindowChildrenRepositioningGuard.cpp [ 59/856] Compiling sip/cpp/sip_corewxWindowBase.cpp -[ 60/856] Compiling sip/cpp/sip_corewxListItem.cpp -[ 61/856] Compiling sip/cpp/sip_corewxWindow.cpp +[ 60/856] Compiling sip/cpp/sip_corewxWindow.cpp +[ 61/856] Compiling sip/cpp/sip_corewxListItem.cpp [ 62/856] Compiling sip/cpp/sip_corewxEvtHandler.cpp -[ 63/856] Compiling sip/cpp/sip_corewxVideoMode.cpp -[ 64/856] Compiling sip/cpp/sip_corewxListEvent.cpp -[ 65/856] Compiling sip/cpp/sip_corewxVisualAttributes.cpp -[ 66/856] Compiling sip/cpp/sip_corewxVariantList.cpp -[ 67/856] Compiling sip/cpp/sip_corewxVersionInfo.cpp -[ 68/856] Compiling sip/cpp/sip_corewxListCtrl.cpp -[ 69/856] Compiling sip/cpp/sip_corewxEventLoopBase.cpp +[ 63/856] Compiling sip/cpp/sip_corewxVisualAttributes.cpp +[ 64/856] Compiling sip/cpp/sip_corewxVideoMode.cpp +[ 65/856] Compiling sip/cpp/sip_corewxVersionInfo.cpp +[ 66/856] Compiling sip/cpp/sip_corewxListEvent.cpp +[ 67/856] Compiling sip/cpp/sip_corewxVariantList.cpp +[ 68/856] Compiling sip/cpp/sip_corewxEventLoopBase.cpp +[ 69/856] Compiling sip/cpp/sip_corewxListCtrl.cpp [ 70/856] Compiling sip/cpp/sip_corewxVariant.cpp [ 71/856] Compiling sip/cpp/sip_corewxColourDialog.cpp [ 72/856] Compiling sip/cpp/sip_corewxVarVScrollHelper.cpp [ 73/856] Compiling sip/cpp/sip_corewxVarScrollHelperBase.cpp -[ 74/856] Compiling sip/cpp/sip_corewxVarHVScrollHelper.cpp -[ 75/856] Compiling sip/cpp/sip_corewxListBox.cpp -[ 76/856] Compiling sip/cpp/sip_corewxLinuxDistributionInfo.cpp -[ 77/856] Compiling sip/cpp/sip_corewxVarHScrollHelper.cpp -[ 78/856] Compiling sip/cpp/sip_corewxFileCtrl.cpp -[ 79/856] Compiling sip/cpp/sip_corewxValidator.cpp -[ 80/856] Compiling sip/cpp/sip_corewxVScrolledWindow.cpp +[ 74/856] Compiling sip/cpp/sip_corewxListBox.cpp +[ 75/856] Compiling sip/cpp/sip_corewxLinuxDistributionInfo.cpp +[ 76/856] Compiling sip/cpp/sip_corewxVarHVScrollHelper.cpp +[ 77/856] Compiling sip/cpp/sip_corewxEventLoopActivator.cpp +[ 78/856] Compiling sip/cpp/sip_corewxVarHScrollHelper.cpp +[ 79/856] Compiling sip/cpp/sip_corewxLayoutConstraints.cpp +[ 80/856] Compiling sip/cpp/sip_corewxValidator.cpp [ 81/856] Compiling sip/cpp/sip_corewxVListBox.cpp -[ 82/856] Compiling sip/cpp/sip_corewxLanguageInfo.cpp -[ 83/856] Compiling sip/cpp/sip_corewxLayoutConstraints.cpp +[ 82/856] Compiling sip/cpp/sip_corewxVScrolledWindow.cpp +[ 83/856] Compiling sip/cpp/sip_corewxLanguageInfo.cpp [ 84/856] Compiling sip/cpp/sip_corewxEventFilter.cpp [ 85/856] Compiling sip/cpp/sip_corewxColourDatabase.cpp -[ 86/856] Compiling sip/cpp/sip_corewxUpdateUIEvent.cpp +[ 86/856] Compiling sip/cpp/sip_corewxBookCtrlEvent.cpp [ 87/856] Compiling sip/cpp/sip_corewxUniChar.cpp -[ 88/856] Compiling sip/cpp/sip_corewxBookCtrlEvent.cpp +[ 88/856] Compiling sip/cpp/sip_corewxUpdateUIEvent.cpp +[ 89/856] Compiling sip/cpp/sip_corewxKeyboardState.cpp +[ 90/856] Compiling sip/cpp/sip_corewxURLDataObject.cpp +[ 91/856] Compiling sip/cpp/sip_corewxULongLong.cpp +[ 92/856] Compiling sip/cpp/sip_corewxKeyEvent.cpp +[ 93/856] Compiling sip/cpp/sip_corewxEventBlocker.cpp +[ 94/856] Compiling sip/cpp/sip_corewxUIntPtr.cpp ../../../../sip/cpp/sip_corewxVScrolledWindow.cpp: In function 'long unsigned int _wxVScrolledWindow_GetFirstVisibleLine(wxVScrolledWindow*)': ../../../../sip/cpp/sip_corewxVScrolledWindow.cpp:48:42: warning: 'size_t wxVarVScrollLegacyAdaptor::GetFirstVisibleLine() const' is deprecated [-Wdeprecated-declarations] return self->GetFirstVisibleLine(); @@ -4176,76 +4216,66 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ -[ 89/856] Compiling sip/cpp/sip_corewxKeyboardState.cpp -[ 90/856] Compiling sip/cpp/sip_corewxURLDataObject.cpp -[ 91/856] Compiling sip/cpp/sip_corewxULongLong.cpp -[ 92/856] Compiling sip/cpp/sip_corewxEventBlocker.cpp -[ 93/856] Compiling sip/cpp/sip_corewxKeyEvent.cpp -[ 94/856] Compiling sip/cpp/sip_corewxUIntPtr.cpp [ 95/856] Compiling sip/cpp/sip_corewxUIActionSimulator.cpp [ 96/856] Compiling sip/cpp/sip_corewxJoystickEvent.cpp -[ 97/856] Compiling sip/cpp/sip_corewxTreeItemId.cpp -[ 98/856] Compiling sip/cpp/sip_corewxTreebook.cpp +[ 97/856] Compiling sip/cpp/sip_corewxTreebook.cpp +[ 98/856] Compiling sip/cpp/sip_corewxTreeItemId.cpp [ 99/856] Compiling sip/cpp/sip_corewxJPEGHandler.cpp [100/856] Compiling sip/cpp/sip_corewxEvent.cpp [101/856] Compiling sip/cpp/sip_corewxColourData.cpp [102/856] Compiling sip/cpp/sip_corewxTreeItemData.cpp [103/856] Compiling sip/cpp/sip_corewxTreeEvent.cpp -[104/856] Compiling sip/cpp/sip_corewxItemContainerImmutable.cpp +[104/856] Compiling sip/cpp/sip_corewxFileConfig.cpp [105/856] Compiling sip/cpp/sip_corewxTreeCtrl.cpp [106/856] Compiling sip/cpp/sip_corewxTranslationsLoader.cpp -[107/856] Compiling sip/cpp/sip_corewxItemContainer.cpp -[108/856] Compiling sip/cpp/sip_corewxEraseEvent.cpp -[109/856] Compiling sip/cpp/sip_corewxTrackable.cpp +[107/856] Compiling sip/cpp/sip_corewxEraseEvent.cpp +[108/856] Compiling sip/cpp/sip_corewxItemContainer.cpp +[109/856] Compiling sip/cpp/sip_corewxTranslations.cpp [110/856] Compiling sip/cpp/sip_corewxInternetFSHandler.cpp -[111/856] Compiling sip/cpp/sip_corewxTranslations.cpp +[111/856] Compiling sip/cpp/sip_corewxTrackable.cpp [112/856] Compiling sip/cpp/sip_corewxTopLevelWindow.cpp -[113/856] Compiling sip/cpp/sip_corewxToolbook.cpp -[114/856] Compiling sip/cpp/sip_corewxDropTarget.cpp -[115/856] Compiling sip/cpp/sip_corewxIntPtr.cpp -[116/856] Compiling sip/cpp/sip_corewxBookCtrlBase.cpp -[117/856] Compiling sip/cpp/sip_corewxAppConsole.cpp -[118/856] Compiling sip/cpp/sip_corewxColour.cpp -[119/856] Compiling sip/cpp/sip_corewxToolBarToolBase.cpp +[113/856] Compiling sip/cpp/sip_corewxIntPtr.cpp +[114/856] Compiling sip/cpp/sip_corewxToolbook.cpp +[115/856] Compiling sip/cpp/sip_corewxDropTarget.cpp +[116/856] Compiling sip/cpp/sip_corewxColour.cpp +[117/856] Compiling sip/cpp/sip_corewxBookCtrlBase.cpp +[118/856] Compiling sip/cpp/sip_corewxAppConsole.cpp +[119/856] Compiling sip/cpp/sip_corewxToolTip.cpp [120/856] Compiling sip/cpp/sip_corewxIntCArrayHolder.cpp -[121/856] Compiling sip/cpp/sip_corewxToolTip.cpp +[121/856] Compiling sip/cpp/sip_corewxToolBarToolBase.cpp [122/856] Compiling sip/cpp/sip_corewxToolBar.cpp -[123/856] Compiling sip/cpp/sip_corewxToggleButton.cpp +[123/856] Compiling sip/cpp/sip_corewxInputStream.cpp [124/856] Compiling sip/cpp/sip_corewxDropSource.cpp -[125/856] Compiling sip/cpp/sip_corewxInputStream.cpp -[126/856] Compiling sip/cpp/sip_corewxTipWindow.cpp -[127/856] Compiling sip/cpp/sip_corewxInitDialogEvent.cpp -[128/856] Compiling sip/cpp/sip_corewxTimerRunner.cpp +[125/856] Compiling sip/cpp/sip_corewxTipWindow.cpp +[126/856] Compiling sip/cpp/sip_corewxToggleButton.cpp +[127/856] Compiling sip/cpp/sip_corewxTimerRunner.cpp +[128/856] Compiling sip/cpp/sip_corewxInitDialogEvent.cpp [129/856] Compiling sip/cpp/sip_corewxTimerEvent.cpp [130/856] Compiling sip/cpp/sip_corewxTimer.cpp -[131/856] Compiling sip/cpp/sip_corewxDropFilesEvent.cpp -[132/856] Compiling sip/cpp/sip_corewxInfoBar.cpp +[131/856] Compiling sip/cpp/sip_corewxInfoBar.cpp +[132/856] Compiling sip/cpp/sip_corewxDropFilesEvent.cpp [133/856] Compiling sip/cpp/sip_corewxCollapsiblePaneEvent.cpp [134/856] Compiling sip/cpp/sip_corewxTimeSpan.cpp -[135/856] Compiling sip/cpp/sip_corewxIndividualLayoutConstraint.cpp -[136/856] Compiling sip/cpp/sip_corewxTextUrlEvent.cpp -[137/856] Compiling sip/cpp/sip_corewxEventLoopActivator.cpp +[135/856] Compiling sip/cpp/sip_corewxTextUrlEvent.cpp +[136/856] Compiling sip/cpp/sip_corewxIndividualLayoutConstraint.cpp +[137/856] Compiling sip/cpp/sip_corewxTextEntryDialog.cpp [138/856] Compiling sip/cpp/sip_corewxTextEntry.cpp [139/856] Compiling sip/cpp/sip_corewxImageRGBValue.cpp [140/856] Compiling sip/cpp/sip_corewxDragImage.cpp [141/856] Compiling sip/cpp/sip_corewxTextDropTarget.cpp [142/856] Compiling sip/cpp/sip_corewxImageList.cpp [143/856] Compiling sip/cpp/sip_corewxTextDataObject.cpp -[144/856] Compiling sip/cpp/sip_corewxTextCompleterSimple.cpp -[145/856] Compiling sip/cpp/sip_corewxImageHistogram.cpp -[146/856] Compiling sip/cpp/sip_corewxTextCtrl.cpp -[147/856] Compiling sip/cpp/sip_corewxDisplayChangedEvent.cpp -[148/856] Compiling sip/cpp/sip_corewxCollapsiblePane.cpp +[144/856] Compiling sip/cpp/sip_corewxTextCtrl.cpp +[145/856] Compiling sip/cpp/sip_corewxTextCompleterSimple.cpp +[146/856] Compiling sip/cpp/sip_corewxDisplayChangedEvent.cpp +[147/856] Compiling sip/cpp/sip_corewxCollapsiblePane.cpp +[148/856] Compiling sip/cpp/sip_corewxImageHistogram.cpp [149/856] Compiling sip/cpp/sip_corewxBitmapToggleButton.cpp -[150/856] Compiling sip/cpp/sip_corewxTextCompleter.cpp -[151/856] Compiling sip/cpp/sip_corewxImageHandler.cpp -[152/856] Compiling sip/cpp/sip_corewxTextAttr.cpp +[150/856] Compiling sip/cpp/sip_corewxTextAttr.cpp +[151/856] Compiling sip/cpp/sip_corewxTextCompleter.cpp +[152/856] Compiling sip/cpp/sip_corewxImageHandler.cpp [153/856] Compiling sip/cpp/sip_corewxTIFFHandler.cpp -[154/856] Compiling sip/cpp/sip_corewxImageHSVValue.cpp -[155/856] Compiling sip/cpp/sip_corewxTGAHandler.cpp -[156/856] Compiling sip/cpp/sip_corewxDisplay.cpp -[157/856] Compiling sip/cpp/sip_corewxSystemSettings.cpp -[158/856] Compiling sip/cpp/sip_corewxSystemOptions.cpp +[154/856] Compiling sip/cpp/sip_corewxTGAHandler.cpp ../../../../sip/cpp/sip_corewxTextCtrl.cpp: In function 'bool _wxTextCtrl_ShowNativeCaret(wxTextCtrl*, bool)': ../../../../sip/cpp/sip_corewxTextCtrl.cpp:61:5: warning: no return statement in function returning non-void [-Wreturn-type] } @@ -4255,28 +4285,33 @@ } ^ +[155/856] Compiling sip/cpp/sip_corewxDisplay.cpp +[156/856] Compiling sip/cpp/sip_corewxImageHSVValue.cpp +[157/856] Compiling sip/cpp/sip_corewxSystemSettings.cpp +[158/856] Compiling sip/cpp/sip_corewxSystemOptions.cpp [159/856] Compiling sip/cpp/sip_corewxImageArray.cpp [160/856] Compiling sip/cpp/sip_corewxSysColourChangedEvent.cpp [161/856] Compiling sip/cpp/sip_corewxStringCArrayHolder.cpp [162/856] Compiling sip/cpp/sip_corewxImage.cpp -[163/856] Compiling sip/cpp/sip_corewxCloseEvent.cpp -[164/856] Compiling sip/cpp/sip_corewxString.cpp +[163/856] Compiling sip/cpp/sip_corewxDirPickerCtrl.cpp +[164/856] Compiling sip/cpp/sip_corewxCloseEvent.cpp [165/856] Compiling sip/cpp/sip_corewxStreamBase.cpp -[166/856] Compiling sip/cpp/sip_corewxIdleEvent.cpp +[166/856] Compiling sip/cpp/sip_corewxString.cpp [167/856] Compiling sip/cpp/sip_corewxStopWatch.cpp -[168/856] Compiling sip/cpp/sip_corewxDirPickerCtrl.cpp -[169/856] Compiling sip/cpp/sip_corewxStockPreferencesPage.cpp +[168/856] Compiling sip/cpp/sip_corewxIdleEvent.cpp +[169/856] Compiling sip/cpp/sip_corewxIdManager.cpp [170/856] Compiling sip/cpp/sip_corewxDirFilterListCtrl.cpp -[171/856] Compiling sip/cpp/sip_corewxStockGDI.cpp -[172/856] Compiling sip/cpp/sip_corewxIdManager.cpp -[173/856] Compiling sip/cpp/sip_corewxTextEntryDialog.cpp +[171/856] Compiling sip/cpp/sip_corewxStockPreferencesPage.cpp +[172/856] Compiling sip/cpp/sip_corewxStockGDI.cpp +[173/856] Compiling sip/cpp/sip_corewxStdDialogButtonSizer.cpp [174/856] Compiling sip/cpp/sip_corewxIconizeEvent.cpp [175/856] Compiling sip/cpp/sip_corewxStatusBarPane.cpp [176/856] Compiling sip/cpp/sip_corewxStatusBar.cpp -[177/856] Compiling sip/cpp/sip_corewxDirDialog.cpp -[178/856] Compiling sip/cpp/sip_corewxIconLocation.cpp +[177/856] Compiling sip/cpp/sip_corewxIconLocation.cpp +[178/856] Compiling sip/cpp/sip_corewxDirDialog.cpp [179/856] Compiling sip/cpp/sip_corewxClipboardTextEvent.cpp [180/856] Compiling sip/cpp/sip_corewxBitmapDataObject.cpp +[181/856] Compiling sip/cpp/sip_corewxAnyButton.cpp ../../../../sip/cpp/sip_corewxIconizeEvent.cpp: In function 'PyObject* meth_wxIconizeEvent_Iconized(PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxIconizeEvent.cpp:148:39: warning: 'bool wxIconizeEvent::Iconized() const' is deprecated [-Wdeprecated-declarations] sipRes = sipCpp->Iconized(); @@ -4292,27 +4327,25 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ -[181/856] Compiling sip/cpp/sip_corewxAnyButton.cpp -[182/856] Compiling sip/cpp/sip_corewxAccessible.cpp -[183/856] Compiling sip/cpp/sip_corecmodule.cpp +[182/856] Compiling sip/cpp/sip_corecmodule.cpp +[183/856] Compiling sip/cpp/sip_corewxAccessible.cpp [184/856] Compiling sip/cpp/sip_corewxStaticText.cpp -[185/856] Compiling sip/cpp/sip_corewxIconBundle.cpp -[186/856] Compiling sip/cpp/sip_corewxStaticLine.cpp -[187/856] Compiling sip/cpp/sip_corewxStaticBox.cpp -[188/856] Compiling sip/cpp/sip_corewxStaticBoxSizer.cpp -[189/856] Compiling sip/cpp/sip_corewxIcon.cpp -[190/856] Compiling sip/cpp/sip_corewxStaticBitmap.cpp -[191/856] Compiling sip/cpp/sip_corewxDialogLayoutAdapter.cpp -[192/856] Compiling sip/cpp/sip_corewxStandardPaths.cpp -[193/856] Compiling sip/cpp/sip_corewxIFFHandler.cpp -[194/856] Compiling sip/cpp/sip_corewxSplitterWindow.cpp +[185/856] Compiling sip/cpp/sip_corewxStaticLine.cpp +[186/856] Compiling sip/cpp/sip_corewxIconBundle.cpp +[187/856] Compiling sip/cpp/sip_corewxStaticBoxSizer.cpp +[188/856] Compiling sip/cpp/sip_corewxIcon.cpp +[189/856] Compiling sip/cpp/sip_corewxStaticBox.cpp +[190/856] Compiling sip/cpp/sip_corewxDialogLayoutAdapter.cpp +[191/856] Compiling sip/cpp/sip_corewxStandardPaths.cpp +[192/856] Compiling sip/cpp/sip_corewxIFFHandler.cpp +[193/856] Compiling sip/cpp/sip_corewxSplitterWindow.cpp +[194/856] Compiling sip/cpp/sip_corewxStaticBitmap.cpp [195/856] Compiling sip/cpp/sip_corewxSplitterRenderParams.cpp [196/856] Compiling sip/cpp/sip_corewxHelpProvider.cpp [197/856] Compiling sip/cpp/sip_corewxDialog.cpp [198/856] Compiling sip/cpp/sip_corewxClipboard.cpp -[199/856] Compiling sip/cpp/sip_corewxSpinEvent.cpp -[200/856] Compiling sip/cpp/sip_corewxSplitterEvent.cpp -[201/856] Compiling sip/cpp/sip_corewxHelpEvent.cpp +[199/856] Compiling sip/cpp/sip_corewxSplitterEvent.cpp +[200/856] Compiling sip/cpp/sip_corewxItemContainerImmutable.cpp ../../../../sip/cpp/sip_corecmodule.cpp: In function 'PyObject* func_Usleep(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_corecmodule.cpp:10476:34: warning: 'void wxUsleep(long unsigned int)' is deprecated [-Wdeprecated-declarations] wxUsleep(milliseconds); @@ -4341,8 +4374,9 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ +[201/856] Compiling sip/cpp/sip_corewxHelpEvent.cpp [202/856] Compiling sip/cpp/sip_corewxSpinDoubleEvent.cpp -[203/856] Compiling sip/cpp/sip_corewxHelpControllerHelpProvider.cpp +[203/856] Compiling sip/cpp/sip_corewxSpinCtrlDouble.cpp ../../../../sip/cpp/sip_corewxSplitterWindow.cpp: In function 'PyObject* meth_wxSplitterWindow_SetSashSize(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxSplitterWindow.cpp:1586:37: warning: 'void wxSplitterWindow::SetSashSize(int)' is deprecated [-Wdeprecated-declarations] sipCpp->SetSashSize(size); @@ -4361,31 +4395,30 @@ wxDEPRECATED_INLINE( void SetSashSize(int WXUNUSED(width)), return; ) ^~~~~~~~~~~~~~~~~~~ -[204/856] Compiling sip/cpp/sip_corewxSpinCtrlDouble.cpp +[204/856] Compiling sip/cpp/sip_corewxHelpControllerHelpProvider.cpp [205/856] Compiling sip/cpp/sip_corewxDelegateRendererNative.cpp [206/856] Compiling sip/cpp/sip_corewxSpinCtrl.cpp -[207/856] Compiling sip/cpp/sip_corewxSpinButton.cpp -[208/856] Compiling sip/cpp/sip_corewxHelpControllerBase.cpp +[207/856] Compiling sip/cpp/sip_corewxHelpControllerBase.cpp +[208/856] Compiling sip/cpp/sip_corewxSpinButton.cpp [209/856] Compiling sip/cpp/sip_corewxSlider.cpp -[210/856] Compiling sip/cpp/sip_corewxHeaderCtrlSimple.cpp -[211/856] Compiling sip/cpp/sip_corewxSizerItemList_iterator.cpp +[210/856] Compiling sip/cpp/sip_corewxSizerItemList_iterator.cpp +[211/856] Compiling sip/cpp/sip_corewxHeaderCtrlSimple.cpp [212/856] Compiling sip/cpp/sip_corewxDateTimeTm.cpp [213/856] Compiling sip/cpp/sip_corewxClientDataContainer.cpp -[214/856] Compiling sip/cpp/sip_corewxBitmapButton.cpp -[215/856] Compiling sip/cpp/sip_corewxSizerItem.cpp -[216/856] Compiling sip/cpp/sip_corewxHeaderCtrlEvent.cpp -[217/856] Compiling sip/cpp/sip_corewxSizerItemList.cpp +[214/856] Compiling sip/cpp/sip_corewxSizerItemList.cpp +[215/856] Compiling sip/cpp/sip_corewxBitmapButton.cpp +[216/856] Compiling sip/cpp/sip_corewxSizerItem.cpp +[217/856] Compiling sip/cpp/sip_corewxSizerFlags.cpp [218/856] Compiling sip/cpp/sip_corewxSizer.cpp -[219/856] Compiling sip/cpp/sip_corewxSizerFlags.cpp +[219/856] Compiling sip/cpp/sip_corewxHeaderCtrlEvent.cpp [220/856] Compiling sip/cpp/sip_corewxDateTimeTimeZone.cpp -[221/856] Compiling sip/cpp/sip_corewxSizeEvent.cpp -[222/856] Compiling sip/cpp/sip_corewxStdDialogButtonSizer.cpp +[221/856] Compiling sip/cpp/sip_corewxHeaderCtrl.cpp +[222/856] Compiling sip/cpp/sip_corewxSizeEvent.cpp [223/856] Compiling sip/cpp/sip_corewxSize.cpp [224/856] Compiling sip/cpp/sip_corewxHeaderColumnSimple.cpp [225/856] Compiling sip/cpp/sip_corewxSingleInstanceChecker.cpp [226/856] Compiling sip/cpp/sip_corewxSimplebook.cpp [227/856] Compiling sip/cpp/sip_corewxHeaderColumn.cpp -[228/856] Compiling sip/cpp/sip_corewxDateTime.cpp ../../../../sip/cpp/sip_corewxSizer.cpp: In function 'PyObject* meth_wxSizer_SetVirtualSizeHints(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxSizer.cpp:3021:47: warning: 'void wxSizer::SetVirtualSizeHints(wxWindow*)' is deprecated [-Wdeprecated-declarations] sipCpp->SetVirtualSizeHints(window); @@ -4401,36 +4434,38 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ +[228/856] Compiling sip/cpp/sip_corewxDateTime.cpp [229/856] Compiling sip/cpp/sip_corewxClientData.cpp [230/856] Compiling sip/cpp/sip_corewxSimpleHelpProvider.cpp [231/856] Compiling sip/cpp/sip_corewxShowEvent.cpp -[232/856] Compiling sip/cpp/sip_corewxHeaderButtonParams.cpp -[233/856] Compiling sip/cpp/sip_corewxSettableHeaderColumn.cpp +[232/856] Compiling sip/cpp/sip_corewxSettableHeaderColumn.cpp +[233/856] Compiling sip/cpp/sip_corewxHeaderButtonParams.cpp [234/856] Compiling sip/cpp/sip_corewxSetCursorEvent.cpp -[235/856] Compiling sip/cpp/sip_corewxDateSpan.cpp -[236/856] Compiling sip/cpp/sip_corewxHVScrolledWindow.cpp +[235/856] Compiling sip/cpp/sip_corewxHVScrolledWindow.cpp +[236/856] Compiling sip/cpp/sip_corewxDateSpan.cpp [237/856] Compiling sip/cpp/sip_corewxSearchCtrl.cpp -[238/856] Compiling sip/cpp/sip_corewxScrolledWindow.cpp -[239/856] Compiling sip/cpp/sip_corewxScrolledCanvas.cpp -[240/856] Compiling sip/cpp/sip_corewxHTMLDataObject.cpp +[238/856] Compiling sip/cpp/sip_corewxHTMLDataObject.cpp +[239/856] Compiling sip/cpp/sip_corewxScrolledWindow.cpp +[240/856] Compiling sip/cpp/sip_corewxScrolledCanvas.cpp [241/856] Compiling sip/cpp/sip_corewxScrollWinEvent.cpp -[242/856] Compiling sip/cpp/sip_corewxDataObjectSimple.cpp -[243/856] Compiling sip/cpp/sip_corewxHScrolledWindow.cpp -[244/856] Compiling sip/cpp/sip_corewxBitmap.cpp -[245/856] Compiling sip/cpp/sip_corewxClientDC.cpp -[246/856] Compiling sip/cpp/sip_corewxScrollEvent.cpp -[247/856] Compiling sip/cpp/sip_corewxAlphaPixelData_Accessor.cpp -[248/856] Compiling sip/cpp/sip_corewxGridSizer.cpp -[249/856] Compiling sip/cpp/sip_corewxScrollBar.cpp +[242/856] Compiling sip/cpp/sip_corewxHScrolledWindow.cpp +[243/856] Compiling sip/cpp/sip_corewxDataObjectSimple.cpp +[244/856] Compiling sip/cpp/sip_corewxClientDC.cpp +[245/856] Compiling sip/cpp/sip_corewxAlphaPixelData_Accessor.cpp +[246/856] Compiling sip/cpp/sip_corewxBitmap.cpp +[247/856] Compiling sip/cpp/sip_corewxScrollEvent.cpp +[248/856] Compiling sip/cpp/sip_corewxScrollBar.cpp +[249/856] Compiling sip/cpp/sip_corewxGridSizer.cpp [250/856] Compiling sip/cpp/sip_corewxScreenDC.cpp [251/856] Compiling sip/cpp/sip_corewxSVGFileDC.cpp -[252/856] Compiling sip/cpp/sip_corewxDataObjectComposite.cpp -[253/856] Compiling sip/cpp/sip_corewxGridBagSizer.cpp +[252/856] Compiling sip/cpp/sip_corewxGridBagSizer.cpp +[253/856] Compiling sip/cpp/sip_corewxDataObjectComposite.cpp [254/856] Compiling sip/cpp/sip_corewxRichMessageDialog.cpp -[255/856] Compiling sip/cpp/sip_corewxHeaderCtrl.cpp +[255/856] Compiling sip/cpp/sip_corewxRendererVersion.cpp [256/856] Compiling sip/cpp/sip_corewxGraphicsRenderer.cpp -[257/856] Compiling sip/cpp/sip_corewxRendererVersion.cpp +[257/856] Compiling sip/cpp/sip_corewxRendererNative.cpp [258/856] Compiling sip/cpp/sip_corewxRegionIterator.cpp +[259/856] Compiling sip/cpp/sip_corewxGraphicsPen.cpp ../../../../sip/cpp/sip_corewxSVGFileDC.cpp: In function 'PyObject* meth_wxSVGFileDC_SetClippingRegion(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxSVGFileDC.cpp:582:46: warning: 'void wxDC::SetClippingRegion(const wxRegion&)' is deprecated [-Wdeprecated-declarations] sipCpp->SetClippingRegion(*region); @@ -4449,61 +4484,63 @@ wxDEPRECATED_INLINE(void SetClippingRegion(const wxRegion& region), ^~~~~~~~~~~~~~~~~~~ -[259/856] Compiling sip/cpp/sip_corewxGraphicsPen.cpp [260/856] Compiling sip/cpp/sip_corewxDataObject.cpp [261/856] Compiling sip/cpp/sip_corewxClassInfo.cpp [262/856] Compiling sip/cpp/sip_corewxRegion.cpp [263/856] Compiling sip/cpp/sip_corewxRefCounter.cpp [264/856] Compiling sip/cpp/sip_corewxGraphicsPath.cpp -[265/856] Compiling sip/cpp/sip_corewxRendererNative.cpp -[266/856] Compiling sip/cpp/sip_corewxRect.cpp -[267/856] Compiling sip/cpp/sip_corewxGraphicsObject.cpp -[268/856] Compiling sip/cpp/sip_corewxDataFormat.cpp +[265/856] Compiling sip/cpp/sip_corewxRect.cpp +[266/856] Compiling sip/cpp/sip_corewxRect2DDouble.cpp +[267/856] Compiling sip/cpp/sip_corewxDataFormat.cpp +[268/856] Compiling sip/cpp/sip_corewxGraphicsObject.cpp [269/856] Compiling sip/cpp/sip_corewxRearrangeDialog.cpp [270/856] Compiling sip/cpp/sip_corewxGraphicsMatrix.cpp -[271/856] Compiling sip/cpp/sip_corewxRearrangeCtrl.cpp -[272/856] Compiling sip/cpp/sip_corewxRealPoint.cpp -[273/856] Compiling sip/cpp/sip_corewxGraphicsGradientStops.cpp -[274/856] Compiling sip/cpp/sip_corewxRearrangeList.cpp +[271/856] Compiling sip/cpp/sip_corewxRearrangeList.cpp +[272/856] Compiling sip/cpp/sip_corewxRearrangeCtrl.cpp +[273/856] Compiling sip/cpp/sip_corewxRealPoint.cpp +[274/856] Compiling sip/cpp/sip_corewxGraphicsGradientStops.cpp [275/856] Compiling sip/cpp/sip_corewxDashCArrayHolder.cpp -[276/856] Compiling sip/cpp/sip_corewxAutoBufferedPaintDC.cpp -[277/856] Compiling sip/cpp/sip_corewxChoicebook.cpp +[276/856] Compiling sip/cpp/sip_corewxChoicebook.cpp +[277/856] Compiling sip/cpp/sip_corewxAutoBufferedPaintDC.cpp [278/856] Compiling sip/cpp/sip_corewxRadioButton.cpp [279/856] Compiling sip/cpp/sip_corewxRadioBox.cpp [280/856] Compiling sip/cpp/sip_corewxGraphicsGradientStop.cpp -[281/856] Compiling sip/cpp/sip_corewxPyUserData.cpp -[282/856] Compiling sip/cpp/sip_corewxQueryNewPaletteEvent.cpp -[283/856] Compiling sip/cpp/sip_corewxDCTextColourChanger.cpp -[284/856] Compiling sip/cpp/sip_corewxRect2DDouble.cpp -[285/856] Compiling sip/cpp/sip_corewxPySingleChoiceDialog.cpp -[286/856] Compiling sip/cpp/sip_corewxGraphicsContext.cpp -[287/856] Compiling sip/cpp/sip_corewxGraphicsFont.cpp +[281/856] Compiling sip/cpp/sip_corewxQueryNewPaletteEvent.cpp +[282/856] Compiling sip/cpp/sip_corewxPyUserData.cpp +[283/856] Compiling sip/cpp/sip_corewxGraphicsFont.cpp +[284/856] Compiling sip/cpp/sip_corewxDCTextColourChanger.cpp +[285/856] Compiling sip/cpp/sip_corewxPyEvent.cpp +[286/856] Compiling sip/cpp/sip_corewxSpinEvent.cpp +[287/856] Compiling sip/cpp/sip_corewxGraphicsContext.cpp [288/856] Compiling sip/cpp/sip_corewxPyCommandEvent.cpp [289/856] Compiling sip/cpp/sip_corewxPyBuffer.cpp [290/856] Compiling sip/cpp/sip_corewxGraphicsBrush.cpp [291/856] Compiling sip/cpp/sip_corewxDCPenChanger.cpp -[292/856] Compiling sip/cpp/sip_corewxPyEvent.cpp -[293/856] Compiling sip/cpp/sip_corewxChoice.cpp +[292/856] Compiling sip/cpp/sip_corewxChoice.cpp +[293/856] Compiling sip/cpp/sip_corewxPyApp.cpp [294/856] Compiling sip/cpp/sip_corewxPropagationDisabler.cpp [295/856] Compiling sip/cpp/sip_corewxGraphicsBitmap.cpp [296/856] Compiling sip/cpp/sip_corewxPropagateOnce.cpp -[297/856] Compiling sip/cpp/sip_corewxProgressDialog.cpp -[298/856] Compiling sip/cpp/sip_corewxDCOverlay.cpp -[299/856] Compiling sip/cpp/sip_corewxProcessEvent.cpp -[300/856] Compiling sip/cpp/sip_corewxPyApp.cpp +[297/856] Compiling sip/cpp/sip_corewxGenericProgressDialog.cpp +[298/856] Compiling sip/cpp/sip_corewxProgressDialog.cpp +[299/856] Compiling sip/cpp/sip_corewxDCOverlay.cpp +[300/856] Compiling sip/cpp/sip_corewxProcessEvent.cpp [301/856] Compiling sip/cpp/sip_corewxProcess.cpp [302/856] Compiling sip/cpp/sip_corewxGenericMessageDialog.cpp -[303/856] Compiling sip/cpp/sip_corewxPrinterDC.cpp -[304/856] Compiling sip/cpp/sip_corewxGenericDragImage.cpp -[305/856] Compiling sip/cpp/sip_corewxPrintout.cpp -[306/856] Compiling sip/cpp/sip_corewxDCFontChanger.cpp -[307/856] Compiling sip/cpp/sip_corewxArtProvider.cpp -[308/856] Compiling sip/cpp/sip_corewxAlphaPixelData.cpp -[309/856] Compiling sip/cpp/sip_corewxChildFocusEvent.cpp -[310/856] Compiling sip/cpp/sip_corewxAcceleratorTable.cpp -[311/856] Compiling sip/cpp/sip_corewxPrinter.cpp -[312/856] Compiling sip/cpp/sip_corewxPrintPreview.cpp +[303/856] Compiling sip/cpp/sip_corewxPrintout.cpp +[304/856] Compiling sip/cpp/sip_corewxPrinterDC.cpp +[305/856] Compiling sip/cpp/sip_corewxGenericDragImage.cpp +[306/856] Compiling sip/cpp/sip_corewxChildFocusEvent.cpp +[307/856] Compiling sip/cpp/sip_corewxDCFontChanger.cpp +[308/856] Compiling sip/cpp/sip_corewxArtProvider.cpp +[309/856] Compiling sip/cpp/sip_corewxAlphaPixelData.cpp +[310/856] Compiling sip/cpp/sip_corewxPrinter.cpp +[311/856] Compiling sip/cpp/sip_corewxPrintPreview.cpp +[312/856] Compiling sip/cpp/sip_corewxAcceleratorTable.cpp [313/856] Compiling sip/cpp/sip_corewxGenericDirCtrl.cpp +[314/856] Compiling sip/cpp/sip_corewxPrintDialogData.cpp +[315/856] Compiling sip/cpp/sip_corewxPrintDialog.cpp +[316/856] Compiling sip/cpp/sip_corewxDCClipper.cpp ../../../../sip/cpp/sip_corewxArtProvider.cpp: In function 'PyObject* meth_wxArtProvider_Insert(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxArtProvider.cpp:450:31: warning: 'static void wxArtProvider::Insert(wxArtProvider*)' is deprecated [-Wdeprecated-declarations] ::wxArtProvider::Insert(provider); @@ -4545,75 +4582,72 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ -[314/856] Compiling sip/cpp/sip_corewxPrintDialogData.cpp -[315/856] Compiling sip/cpp/sip_corewxPrintDialog.cpp -[316/856] Compiling sip/cpp/sip_corewxGauge.cpp -[317/856] Compiling sip/cpp/sip_corewxDCClipper.cpp +[317/856] Compiling sip/cpp/sip_corewxGauge.cpp [318/856] Compiling sip/cpp/sip_corewxPrintData.cpp -[319/856] Compiling sip/cpp/sip_corewxGUIEventLoop.cpp -[320/856] Compiling sip/cpp/sip_corewxPrintAbortDialog.cpp -[321/856] Compiling sip/cpp/sip_corewxPreviewFrame.cpp +[319/856] Compiling sip/cpp/sip_corewxPrintAbortDialog.cpp +[320/856] Compiling sip/cpp/sip_corewxPreviewFrame.cpp +[321/856] Compiling sip/cpp/sip_corewxGUIEventLoop.cpp [322/856] Compiling sip/cpp/sip_corewxPreviewControlBar.cpp [323/856] Compiling sip/cpp/sip_corewxDCBrushChanger.cpp [324/856] Compiling sip/cpp/sip_corewxGIFHandler.cpp [325/856] Compiling sip/cpp/sip_corewxCheckListBox.cpp -[326/856] Compiling sip/cpp/sip_corewxPreferencesPage.cpp -[327/856] Compiling sip/cpp/sip_corewxPreviewCanvas.cpp +[326/856] Compiling sip/cpp/sip_corewxPreviewCanvas.cpp +[327/856] Compiling sip/cpp/sip_corewxPreferencesPage.cpp [328/856] Compiling sip/cpp/sip_corewxGDIObject.cpp [329/856] Compiling sip/cpp/sip_corewxPreferencesEditor.cpp -[330/856] Compiling sip/cpp/sip_corewxPowerEvent.cpp -[331/856] Compiling sip/cpp/sip_corewxGCDC.cpp -[332/856] Compiling sip/cpp/sip_corewxDC.cpp +[330/856] Compiling sip/cpp/sip_corewxGCDC.cpp +[331/856] Compiling sip/cpp/sip_corewxDC.cpp +[332/856] Compiling sip/cpp/sip_corewxPowerEvent.cpp [333/856] Compiling sip/cpp/sip_corewxPostScriptDC.cpp -[334/856] Compiling sip/cpp/sip_corewxPosition.cpp -[335/856] Compiling sip/cpp/sip_corewxPopupWindow.cpp -[336/856] Compiling sip/cpp/sip_corewxGBSpan.cpp -[337/856] Compiling sip/cpp/sip_corewxPopupTransientWindow.cpp +[334/856] Compiling sip/cpp/sip_corewxGBSpan.cpp +[335/856] Compiling sip/cpp/sip_corewxPosition.cpp +[336/856] Compiling sip/cpp/sip_corewxPopupTransientWindow.cpp +[337/856] Compiling sip/cpp/sip_corewxPopupWindow.cpp [338/856] Compiling sip/cpp/sip_corewxGBSizerItem.cpp [339/856] Compiling sip/cpp/sip_corewxCheckBox.cpp -[340/856] Compiling sip/cpp/sip_corewxArrayVideoModes.cpp -[341/856] Compiling sip/cpp/sip_corewxCustomDataObject.cpp -[342/856] Compiling sip/cpp/sip_corewxPointList.cpp -[343/856] Compiling sip/cpp/sip_corewxPointList_iterator.cpp -[344/856] Compiling sip/cpp/sip_corewxPoint2DDouble.cpp -[345/856] Compiling sip/cpp/sip_corewxGBPosition.cpp +[340/856] Compiling sip/cpp/sip_corewxCustomDataObject.cpp +[341/856] Compiling sip/cpp/sip_corewxArrayVideoModes.cpp +[342/856] Compiling sip/cpp/sip_corewxPySingleChoiceDialog.cpp +[343/856] Compiling sip/cpp/sip_corewxPointList.cpp +[344/856] Compiling sip/cpp/sip_corewxGBPosition.cpp +[345/856] Compiling sip/cpp/sip_corewxPoint2DDouble.cpp [346/856] Compiling sip/cpp/sip_corewxPoint.cpp -[347/856] Compiling sip/cpp/sip_corewxCursor.cpp +[347/856] Compiling sip/cpp/sip_corewxFrame.cpp [348/856] Compiling sip/cpp/sip_corewxPlatformInfo.cpp -[349/856] Compiling sip/cpp/sip_corewxPixelDataBase.cpp -[350/856] Compiling sip/cpp/sip_corewxGenericProgressDialog.cpp +[349/856] Compiling sip/cpp/sip_corewxCursor.cpp +[350/856] Compiling sip/cpp/sip_corewxPixelDataBase.cpp [351/856] Compiling sip/cpp/sip_corewxFontPickerEvent.cpp [352/856] Compiling sip/cpp/sip_corewxPenList.cpp [353/856] Compiling sip/cpp/sip_corewxPickerBase.cpp [354/856] Compiling sip/cpp/sip_corewxFontPickerCtrl.cpp -[355/856] Compiling sip/cpp/sip_corewxCharBuffer.cpp -[356/856] Compiling sip/cpp/sip_corewxControlWithItems.cpp -[357/856] Compiling sip/cpp/sip_corewxPasswordEntryDialog.cpp -[358/856] Compiling sip/cpp/sip_corewxPen.cpp -[359/856] Compiling sip/cpp/sip_corewxPanel.cpp -[360/856] Compiling sip/cpp/sip_corewxFontMetrics.cpp +[355/856] Compiling sip/cpp/sip_corewxControlWithItems.cpp +[356/856] Compiling sip/cpp/sip_corewxCharBuffer.cpp +[357/856] Compiling sip/cpp/sip_corewxPen.cpp +[358/856] Compiling sip/cpp/sip_corewxPasswordEntryDialog.cpp +[359/856] Compiling sip/cpp/sip_corewxFontMetrics.cpp +[360/856] Compiling sip/cpp/sip_corewxPanel.cpp [361/856] Compiling sip/cpp/sip_corewxPaletteChangedEvent.cpp [362/856] Compiling sip/cpp/sip_corewxControl.cpp -[363/856] Compiling sip/cpp/sip_corewxFontMapper.cpp -[364/856] Compiling sip/cpp/sip_corewxPaintEvent.cpp +[363/856] Compiling sip/cpp/sip_corewxPointList_iterator.cpp +[364/856] Compiling sip/cpp/sip_corewxPalette.cpp [365/856] Compiling sip/cpp/sip_corewxFontList.cpp -[366/856] Compiling sip/cpp/sip_corewxPaintDC.cpp -[367/856] Compiling sip/cpp/sip_corewxPalette.cpp -[368/856] Compiling sip/cpp/sip_corewxPageSetupDialogData.cpp -[369/856] Compiling sip/cpp/sip_corewxContextMenuEvent.cpp -[370/856] Compiling sip/cpp/sip_corewxFontInfo.cpp +[366/856] Compiling sip/cpp/sip_corewxPaintEvent.cpp +[367/856] Compiling sip/cpp/sip_corewxPageSetupDialogData.cpp +[368/856] Compiling sip/cpp/sip_corewxPaintDC.cpp +[369/856] Compiling sip/cpp/sip_corewxFontInfo.cpp +[370/856] Compiling sip/cpp/sip_corewxContextMenuEvent.cpp [371/856] Compiling sip/cpp/sip_corewxCaret.cpp [372/856] Compiling sip/cpp/sip_corewxArrayString.cpp -[373/856] Compiling sip/cpp/sip_corewxAffineMatrix2DBase.cpp -[374/856] Compiling sip/cpp/sip_corewxPageSetupDialog.cpp -[375/856] Compiling sip/cpp/sip_corewxPNMHandler.cpp -[376/856] Compiling sip/cpp/sip_corewxFontEnumerator.cpp +[373/856] Compiling sip/cpp/sip_corewxPageSetupDialog.cpp +[374/856] Compiling sip/cpp/sip_corewxAffineMatrix2DBase.cpp +[375/856] Compiling sip/cpp/sip_corewxFontEnumerator.cpp +[376/856] Compiling sip/cpp/sip_corewxPNMHandler.cpp [377/856] Compiling sip/cpp/sip_corewxPNGHandler.cpp [378/856] Compiling sip/cpp/sip_corewxPCXHandler.cpp [379/856] Compiling sip/cpp/sip_corewxFontDialog.cpp -[380/856] Compiling sip/cpp/sip_corewxContextHelpButton.cpp -[381/856] Compiling sip/cpp/sip_corewxOverlay.cpp -[382/856] Compiling sip/cpp/sip_corewxOutputStream.cpp +[380/856] Compiling sip/cpp/sip_corewxOverlay.cpp +[381/856] Compiling sip/cpp/sip_corewxOutputStream.cpp +[382/856] Compiling sip/cpp/sip_corewxContextHelpButton.cpp [383/856] Compiling sip/cpp/sip_corewxFontData.cpp [384/856] Compiling sip/cpp/sip_corewxObject.cpp [385/856] Compiling sip/cpp/sip_corewxFont.cpp @@ -4623,49 +4657,49 @@ [389/856] Compiling sip/cpp/sip_corewxNotifyEvent.cpp [390/856] Compiling sip/cpp/sip_corewxNotebook.cpp [391/856] Compiling sip/cpp/sip_corewxFocusEvent.cpp -[392/856] Compiling sip/cpp/sip_corewxNonOwnedWindow.cpp +[392/856] Compiling sip/cpp/sip_corewxNavigationKeyEvent.cpp [393/856] Compiling sip/cpp/sip_corewxFlexGridSizer.cpp -[394/856] Compiling sip/cpp/sip_corewxFrame.cpp +[394/856] Compiling sip/cpp/sip_corewxNonOwnedWindow.cpp [395/856] Compiling sip/cpp/sip_corewxConfigPathChanger.cpp [396/856] Compiling sip/cpp/sip_corewxNativePixelData_Accessor.cpp -[397/856] Compiling sip/cpp/sip_corewxNativePixelData.cpp -[398/856] Compiling sip/cpp/sip_corewxFindReplaceDialog.cpp -[399/856] Compiling sip/cpp/sip_corewxNativeFontInfo.cpp +[397/856] Compiling sip/cpp/sip_corewxFindReplaceDialog.cpp +[398/856] Compiling sip/cpp/sip_corewxNativeFontInfo.cpp +[399/856] Compiling sip/cpp/sip_corewxMultiChoiceDialog.cpp [400/856] Compiling sip/cpp/sip_corewxFindReplaceData.cpp -[401/856] Compiling sip/cpp/sip_corewxMultiChoiceDialog.cpp -[402/856] Compiling sip/cpp/sip_corewxBusyInfo.cpp -[403/856] Compiling sip/cpp/sip_corewxConfigBase.cpp -[404/856] Compiling sip/cpp/sip_corewxArrayInt.cpp +[401/856] Compiling sip/cpp/sip_corewxFontMapper.cpp +[402/856] Compiling sip/cpp/sip_corewxConfigBase.cpp +[403/856] Compiling sip/cpp/sip_corewxArrayInt.cpp +[404/856] Compiling sip/cpp/sip_corewxBusyInfo.cpp [405/856] Compiling sip/cpp/sip_corewxMsgCatalog.cpp -[406/856] Compiling sip/cpp/sip_corewxNavigationKeyEvent.cpp -[407/856] Compiling sip/cpp/sip_corewxFindDialogEvent.cpp -[408/856] Compiling sip/cpp/sip_corewxMouseEventsManager.cpp -[409/856] Compiling sip/cpp/sip_corewxMouseState.cpp -[410/856] Compiling sip/cpp/sip_corewxMoveEvent.cpp +[406/856] Compiling sip/cpp/sip_corewxMoveEvent.cpp +[407/856] Compiling sip/cpp/sip_corewxMouseState.cpp +[408/856] Compiling sip/cpp/sip_corewxFindDialogEvent.cpp +[409/856] Compiling sip/cpp/sip_corewxMouseEventsManager.cpp +[410/856] Compiling sip/cpp/sip_corewxFilterFSHandler.cpp [411/856] Compiling sip/cpp/sip_corewxConfig.cpp -[412/856] Compiling sip/cpp/sip_corewxMouseEvent.cpp -[413/856] Compiling sip/cpp/sip_corewxFilterFSHandler.cpp -[414/856] Compiling sip/cpp/sip_corewxFileTypeMessageParameters.cpp -[415/856] Compiling sip/cpp/sip_corewxMouseCaptureChangedEvent.cpp +[412/856] Compiling sip/cpp/sip_corewxMouseCaptureLostEvent.cpp +[413/856] Compiling sip/cpp/sip_corewxFileTypeMessageParameters.cpp +[414/856] Compiling sip/cpp/sip_corewxMouseCaptureChangedEvent.cpp +[415/856] Compiling sip/cpp/sip_corewxMouseEvent.cpp [416/856] Compiling sip/cpp/sip_corewxModalDialogHook.cpp -[417/856] Compiling sip/cpp/sip_corewxFileTypeInfo.cpp -[418/856] Compiling sip/cpp/sip_corewxCommandProcessor.cpp +[417/856] Compiling sip/cpp/sip_corewxCommandProcessor.cpp +[418/856] Compiling sip/cpp/sip_corewxFileTypeInfo.cpp [419/856] Compiling sip/cpp/sip_corewxBusyCursor.cpp -[420/856] Compiling sip/cpp/sip_corewxMouseCaptureLostEvent.cpp -[421/856] Compiling sip/cpp/sip_corewxMiniFrame.cpp -[422/856] Compiling sip/cpp/sip_corewxFileType.cpp +[420/856] Compiling sip/cpp/sip_corewxMirrorDC.cpp +[421/856] Compiling sip/cpp/sip_corewxFileType.cpp +[422/856] Compiling sip/cpp/sip_corewxMiniFrame.cpp [423/856] Compiling sip/cpp/sip_corewxMimeTypesManager.cpp [424/856] Compiling sip/cpp/sip_corewxMetafileDC.cpp [425/856] Compiling sip/cpp/sip_corewxFileTranslationsLoader.cpp -[426/856] Compiling sip/cpp/sip_corewxCommandList_iterator.cpp -[427/856] Compiling sip/cpp/sip_corewxMetafile.cpp +[426/856] Compiling sip/cpp/sip_corewxMetafile.cpp +[427/856] Compiling sip/cpp/sip_corewxCommandList_iterator.cpp [428/856] Compiling sip/cpp/sip_corewxMessageDialogButtonLabel.cpp -[429/856] Compiling sip/cpp/sip_corewxMessageDialog.cpp -[430/856] Compiling sip/cpp/sip_corewxMirrorDC.cpp +[429/856] Compiling sip/cpp/sip_corewxFileSystemWatcherEvent.cpp +[430/856] Compiling sip/cpp/sip_corewxNativePixelData.cpp [431/856] Compiling sip/cpp/sip_corewxBufferedDC.cpp [432/856] Compiling sip/cpp/sip_corewxBrushList.cpp -[433/856] Compiling sip/cpp/sip_corewxFileSystemWatcherEvent.cpp -[434/856] Compiling sip/cpp/sip_corewxComboCtrlFeatures.cpp +[433/856] Compiling sip/cpp/sip_corewxComboCtrlFeatures.cpp +[434/856] Compiling sip/cpp/sip_corewxMessageDialog.cpp [435/856] Compiling sip/cpp/sip_corewxCommandEvent.cpp [436/856] Compiling sip/cpp/sip_corewxCommand.cpp [437/856] Compiling sip/cpp/sip_corewxFileDropTarget.cpp @@ -4689,7 +4723,6 @@ [455/856] Compiling sip/cpp/sip_corewxFileHistoryMenuList_iterator.cpp [456/856] Compiling sip/cpp/sip_corewxMemoryBuffer.cpp [457/856] Compiling sip/cpp/sip_advwxWizardPageSimple.cpp -[458/856] Compiling sip/cpp/sip_advwxWizardEvent.cpp ../../../../sip/cpp/sip_corewxMenuItem.cpp: In function 'PyObject* meth_wxMenuItem_GetLabel(PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxMenuItem.cpp:478:55: warning: 'wxString wxMenuItemBase::GetLabel() const' is deprecated [-Wdeprecated-declarations] sipRes = new ::wxString(sipCpp->GetLabel()); @@ -4775,11 +4808,12 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ +[458/856] Compiling sip/cpp/sip_advwxWizardEvent.cpp [459/856] Compiling sip/cpp/sip_advwxTaskBarIcon.cpp -[460/856] Compiling sip/cpp/sip_advwxNotificationMessage.cpp +[460/856] Compiling sip/cpp/sip_advwxHyperlinkEvent.cpp [461/856] Compiling sip/cpp/sip_advwxAnimation.cpp [462/856] Compiling sip/cpp/sip_advwxAboutDialogInfo.cpp -[463/856] Compiling sip/cpp/sip_advwxAnimationCtrl.cpp +[463/856] Compiling sip/cpp/sip_advwxBannerWindow.cpp [464/856] Compiling sip/cpp/sip_advwxSplashScreen.cpp ../../../../sip/cpp/sip_corewxMenuBar.cpp: In function 'PyObject* meth_wxMenuBar_GetLabelTop(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxMenuBar.cpp:2140:61: warning: 'wxString wxMenuBarBase::GetLabelTop(size_t) const' is deprecated [-Wdeprecated-declarations] @@ -4811,59 +4845,56 @@ ^ [465/856] Compiling sip/cpp/sip_advcmodule.cpp -[466/856] Compiling sip/cpp/sip_advwxPropertySheetDialog.cpp -[467/856] Compiling sip/cpp/sip_advwxSashEvent.cpp -[468/856] Compiling sip/cpp/sip_advwxExtHelpController.cpp -[469/856] Linking build/waf/2.7/gtk3/_core.so -[470/856] Compiling sip/cpp/sip_advwxDateEvent.cpp -[471/856] Compiling sip/cpp/sip_advwxWizardPage.cpp -[472/856] Compiling sip/cpp/sip_advwxCalendarCtrl.cpp +[466/856] Compiling sip/cpp/sip_advwxSashEvent.cpp +[467/856] Compiling sip/cpp/sip_advwxExtHelpController.cpp +[468/856] Linking build/waf/2.7/gtk3/_core.so +[469/856] Compiling sip/cpp/sip_advwxDateEvent.cpp +[470/856] Compiling sip/cpp/sip_advwxPropertySheetDialog.cpp +[471/856] Compiling sip/cpp/sip_advwxCalendarCtrl.cpp +[472/856] Compiling sip/cpp/sip_advwxWizardPage.cpp [473/856] Compiling sip/cpp/sip_advwxWizard.cpp -[474/856] Compiling sip/cpp/sip_advwxTipProvider.cpp +[474/856] Compiling sip/cpp/sip_advwxTaskBarIconEvent.cpp [475/856] Compiling sip/cpp/sip_advwxTimePickerCtrl.cpp -[476/856] Compiling sip/cpp/sip_advwxSound.cpp -[477/856] Compiling sip/cpp/sip_advwxTaskBarIconEvent.cpp +[476/856] Compiling sip/cpp/sip_advwxTipProvider.cpp +[477/856] Compiling sip/cpp/sip_advwxSashLayoutWindow.cpp [478/856] Compiling sip/cpp/sip_advwxPseudoDC.cpp [479/856] Compiling sip/cpp/sip_advwxSashWindow.cpp [480/856] Compiling sip/cpp/sip_advwxRichToolTip.cpp -[481/856] Compiling sip/cpp/sip_advwxSashLayoutWindow.cpp +[481/856] Compiling sip/cpp/sip_advwxSound.cpp [482/856] Compiling sip/cpp/sip_advwxQueryLayoutInfoEvent.cpp -[483/856] Compiling sip/cpp/sip_advwxLayoutAlgorithm.cpp -[484/856] Compiling sip/cpp/sip_advwxHyperlinkEvent.cpp +[483/856] Compiling sip/cpp/sip_advwxOwnerDrawnComboBox.cpp +[484/856] Compiling sip/cpp/sip_advwxJoystick.cpp [485/856] Compiling sip/cpp/sip_advwxDatePickerCtrlGeneric.cpp -[486/856] Compiling sip/cpp/sip_advwxCalculateLayoutEvent.cpp -[487/856] Compiling sip/cpp/sip_advwxOwnerDrawnComboBox.cpp -[488/856] Compiling sip/cpp/sip_advwxJoystick.cpp -[489/856] Compiling sip/cpp/sip_advwxEditableListBox.cpp -[490/856] Compiling sip/cpp/sip_advwxGenericCalendarCtrl.cpp -[491/856] Compiling sip/cpp/sip_advwxHyperlinkCtrl.cpp -[492/856] Compiling sip/cpp/sip_advwxCalendarEvent.cpp -[493/856] Compiling sip/cpp/sip_advwxBannerWindow.cpp -[494/856] Compiling sip/cpp/sip_advwxCommandLinkButton.cpp -[495/856] Compiling sip/cpp/sip_advwxDatePickerCtrl.cpp +[486/856] Compiling sip/cpp/sip_advwxAnimationCtrl.cpp +[487/856] Compiling sip/cpp/sip_advwxLayoutAlgorithm.cpp +[488/856] Compiling sip/cpp/sip_advwxNotificationMessage.cpp +[489/856] Compiling sip/cpp/sip_advwxGenericCalendarCtrl.cpp +[490/856] Compiling sip/cpp/sip_advwxHyperlinkCtrl.cpp +[491/856] Compiling sip/cpp/sip_advwxEditableListBox.cpp +[492/856] Compiling sip/cpp/sip_advwxCommandLinkButton.cpp +[493/856] Compiling sip/cpp/sip_advwxCalculateLayoutEvent.cpp +[494/856] Compiling sip/cpp/sip_advwxDatePickerCtrl.cpp +[495/856] Compiling sip/cpp/sip_advwxCalendarEvent.cpp [496/856] Compiling sip/cpp/sip_advwxBitmapComboBox.cpp [497/856] Compiling sip/cpp/sip_advwxCalendarDateAttr.cpp -[498/856] Compiling sip/cpp/sip_dataviewwxDataViewItem.cpp -[499/856] Compiling sip/cpp/sip_dataviewwxDataViewIconTextRenderer.cpp +[498/856] Compiling sip/cpp/sip_dataviewwxDataViewIndexListModel.cpp +[499/856] Compiling sip/cpp/sip_dataviewwxDataViewItem.cpp [500/856] Compiling sip/cpp/sip_dataviewwxDataViewVirtualListModel.cpp [501/856] Compiling sip/cpp/sip_dataviewwxDataViewColumn.cpp [502/856] Compiling sip/cpp/sip_dataviewwxDataViewListStore.cpp [503/856] Compiling sip/cpp/sip_dataviewwxDataViewDateRenderer.cpp [504/856] Compiling sip/cpp/sip_dataviewwxDataViewItemAttr.cpp [505/856] Compiling sip/cpp/sip_dataviewwxDataViewIconText.cpp -[506/856] Compiling sip/cpp/sip_dataviewwxDataViewIndexListModel.cpp -[507/856] Compiling sip/cpp/sip_dataviewwxDataViewEvent.cpp -[508/856] Compiling sip/cpp/sip_dataviewwxDataViewModelNotifier.cpp -[509/856] Compiling sip/cpp/sip_dataviewwxDataViewTreeStore.cpp -[510/856] Linking build/waf/2.7/gtk3/_adv.so -[511/856] Compiling sip/cpp/sip_dataviewwxDataViewCtrl.cpp -[512/856] Compiling sip/cpp/sip_dataviewwxDataViewSpinRenderer.cpp -[513/856] Compiling sip/cpp/sip_dataviewwxDataViewListCtrl.cpp -[514/856] Compiling sip/cpp/sip_dataviewwxDataViewCustomRenderer.cpp -[515/856] Compiling sip/cpp/sip_dataviewwxDataViewListModel.cpp -[516/856] Compiling sip/cpp/sip_dataviewwxTreeListCtrl.cpp -[517/856] Compiling sip/cpp/sip_dataviewwxDataViewTextRenderer.cpp -[518/856] Compiling sip/cpp/sip_dataviewwxDataViewToggleRenderer.cpp +[506/856] Compiling sip/cpp/sip_dataviewwxDataViewSpinRenderer.cpp +[507/856] Compiling sip/cpp/sip_dataviewwxDataViewIconTextRenderer.cpp +[508/856] Linking build/waf/2.7/gtk3/_adv.so +[509/856] Compiling sip/cpp/sip_dataviewwxDataViewToggleRenderer.cpp +[510/856] Compiling sip/cpp/sip_dataviewwxDataViewCtrl.cpp +[511/856] Compiling sip/cpp/sip_dataviewwxDataViewModel.cpp +[512/856] Compiling sip/cpp/sip_dataviewwxDataViewEvent.cpp +[513/856] Compiling sip/cpp/sip_dataviewcmodule.cpp +[514/856] Compiling sip/cpp/sip_dataviewwxDataViewListCtrl.cpp +[515/856] Compiling sip/cpp/sip_dataviewwxDataViewCustomRenderer.cpp ../../../../sip/cpp/sip_dataviewwxDataViewSpinRenderer.cpp: In member function 'virtual bool sipwxDataViewSpinRenderer::LeftClick(wxPoint, wxRect, wxDataViewModel*, const wxDataViewItem&, uint)': ../../../../sip/cpp/sip_dataviewwxDataViewSpinRenderer.cpp:311:43: warning: 'virtual bool wxDataViewCustomRendererBase::LeftClick(wxPoint, wxRect, wxDataViewModel*, const wxDataViewItem&, unsigned int)' is deprecated [-Wdeprecated-declarations] return ::wxDataViewSpinRenderer::LeftClick(cursor,cell,model,item,col); @@ -4931,7 +4962,13 @@ wxDEPRECATED_BUT_USED_INTERNALLY_INLINE( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +[516/856] Compiling sip/cpp/sip_dataviewwxDataViewTextRenderer.cpp +[517/856] Compiling sip/cpp/sip_dataviewwxDataViewTreeStore.cpp +[518/856] Compiling sip/cpp/sip_dataviewwxDataViewListModel.cpp [519/856] Compiling sip/cpp/sip_dataviewwxTreeListEvent.cpp +[520/856] Compiling sip/cpp/sip_dataviewwxDataViewModelNotifier.cpp +[521/856] Compiling sip/cpp/sip_dataviewwxDVCVariant.cpp +[522/856] Compiling sip/cpp/sip_dataviewwxDataViewItemArray.cpp ../../../../sip/cpp/sip_dataviewwxDataViewCustomRenderer.cpp: In member function 'virtual bool sipwxDataViewCustomRenderer::Activate(wxRect, wxDataViewModel*, const wxDataViewItem&, uint)': ../../../../sip/cpp/sip_dataviewwxDataViewCustomRenderer.cpp:125:45: warning: 'virtual bool wxDataViewCustomRendererBase::Activate(wxRect, wxDataViewModel*, const wxDataViewItem&, unsigned int)' is deprecated [-Wdeprecated-declarations] return ::wxDataViewCustomRenderer::Activate(cell,model,item,col); @@ -5065,83 +5102,79 @@ wxDEPRECATED_BUT_USED_INTERNALLY_INLINE( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -[520/856] Compiling sip/cpp/sip_dataviewwxDataViewModel.cpp -[521/856] Compiling sip/cpp/sip_dataviewwxDVCVariant.cpp -[522/856] Compiling sip/cpp/sip_dataviewwxDataViewItemArray.cpp [523/856] Compiling sip/cpp/sip_dataviewwxTreeListItem.cpp [524/856] Compiling sip/cpp/sip_dataviewwxVariantVector.cpp [525/856] Compiling sip/cpp/sip_dataviewwxDataViewBitmapRenderer.cpp [526/856] Compiling sip/cpp/sip_dataviewwxTreeListItemComparator.cpp -[527/856] Compiling sip/cpp/sip_dataviewwxDataViewProgressRenderer.cpp +[527/856] Compiling sip/cpp/sip_dataviewwxDataViewTreeCtrl.cpp [528/856] Compiling sip/cpp/sip_dataviewwxDataViewChoiceRenderer.cpp [529/856] Compiling sip/cpp/sip_dataviewwxDataViewRenderer.cpp -[530/856] Compiling sip/cpp/sip_dataviewwxDataViewTreeCtrl.cpp -[531/856] Compiling sip/cpp/sip_dataviewcmodule.cpp +[530/856] Compiling sip/cpp/sip_dataviewwxDataViewProgressRenderer.cpp +[531/856] Compiling sip/cpp/sip_dataviewwxTreeListCtrl.cpp [532/856] Compiling sip/cpp/sip_gridwxGridCellAutoWrapStringRenderer.cpp [533/856] Compiling sip/cpp/sip_gridwxGridCellAttrProvider.cpp -[534/856] Compiling sip/cpp/sip_gridwxGridCellStringRenderer.cpp -[535/856] Compiling sip/cpp/sip_gridwxGridCellEnumEditor.cpp -[536/856] Compiling sip/cpp/sip_gridwxGridCellEditor.cpp +[534/856] Compiling sip/cpp/sip_gridwxGridCellEnumRenderer.cpp +[535/856] Compiling sip/cpp/sip_gridwxGridCornerHeaderRendererDefault.cpp +[536/856] Compiling sip/cpp/sip_gridwxGridCellChoiceEditor.cpp [537/856] Compiling sip/cpp/sip_gridwxGridCellAttr.cpp [538/856] Compiling sip/cpp/sip_gridwxGridUpdateLocker.cpp -[539/856] Compiling sip/cpp/sip_gridwxGridCellBoolEditor.cpp -[540/856] Compiling sip/cpp/sip_gridwxGrid.cpp -[541/856] Compiling sip/cpp/sip_gridwxGridCellChoiceEditor.cpp -[542/856] Linking build/waf/2.7/gtk3/_dataview.so -[543/856] Compiling sip/cpp/sip_gridcmodule.cpp +[539/856] Compiling sip/cpp/sip_gridwxGridCellCoords.cpp +[540/856] Compiling sip/cpp/sip_gridwxGridCellBoolEditor.cpp +[541/856] Compiling sip/cpp/sip_gridcmodule.cpp +[542/856] Compiling sip/cpp/sip_gridwxGridCellBoolRenderer.cpp +[543/856] Compiling sip/cpp/sip_gridwxGrid.cpp [544/856] Compiling sip/cpp/sip_gridwxGridCellCoordsArray.cpp -[545/856] Compiling sip/cpp/sip_gridwxGridSizeEvent.cpp -[546/856] Compiling sip/cpp/sip_gridwxGridCellEnumRenderer.cpp +[545/856] Linking build/waf/2.7/gtk3/_dataview.so +[546/856] Compiling sip/cpp/sip_gridwxGridRangeSelectEvent.cpp [547/856] Compiling sip/cpp/sip_gridwxGridHeaderLabelsRenderer.cpp -[548/856] Compiling sip/cpp/sip_gridwxGridCornerHeaderRendererDefault.cpp -[549/856] Compiling sip/cpp/sip_gridwxGridRangeSelectEvent.cpp +[548/856] Compiling sip/cpp/sip_gridwxGridCellStringRenderer.cpp +[549/856] Compiling sip/cpp/sip_gridwxGridCellEnumEditor.cpp [550/856] Compiling sip/cpp/sip_gridwxGridTableMessage.cpp [551/856] Compiling sip/cpp/sip_gridwxGridCellNumberEditor.cpp -[552/856] Compiling sip/cpp/sip_gridwxGridCellTextEditor.cpp -[553/856] Compiling sip/cpp/sip_gridwxGridColumnHeaderRenderer.cpp -[554/856] Compiling sip/cpp/sip_gridwxGridCellAutoWrapStringEditor.cpp -[555/856] Compiling sip/cpp/sip_gridwxGridCellBoolRenderer.cpp -[556/856] Compiling sip/cpp/sip_gridwxGridTableBase.cpp -[557/856] Compiling sip/cpp/sip_gridwxGridEditorCreatedEvent.cpp -[558/856] Compiling sip/cpp/sip_gridwxGridCellCoords.cpp -[559/856] Compiling sip/cpp/sip_gridwxGridSizesInfo.cpp -[560/856] Compiling sip/cpp/sip_gridwxGridEvent.cpp -[561/856] Compiling sip/cpp/sip_gridwxGridRowHeaderRendererDefault.cpp -[562/856] Compiling sip/cpp/sip_gridwxGridCellRenderer.cpp +[552/856] Compiling sip/cpp/sip_gridwxGridCellAutoWrapStringEditor.cpp +[553/856] Compiling sip/cpp/sip_gridwxGridCellTextEditor.cpp +[554/856] Compiling sip/cpp/sip_gridwxGridCellRenderer.cpp +[555/856] Compiling sip/cpp/sip_gridwxGridColumnHeaderRenderer.cpp +[556/856] Compiling sip/cpp/sip_gridwxGridSizeEvent.cpp +[557/856] Compiling sip/cpp/sip_gridwxGridRowHeaderRendererDefault.cpp +[558/856] Compiling sip/cpp/sip_gridwxGridEditorCreatedEvent.cpp +[559/856] Compiling sip/cpp/sip_gridwxGridCellEditor.cpp +[560/856] Compiling sip/cpp/sip_gridwxGridSizesInfo.cpp +[561/856] Compiling sip/cpp/sip_gridwxGridEvent.cpp +[562/856] Compiling sip/cpp/sip_gridwxGridRowHeaderRenderer.cpp [563/856] Compiling sip/cpp/sip_gridwxGridStringTable.cpp -[564/856] Compiling sip/cpp/sip_gridwxGridCellNumberRenderer.cpp -[565/856] Compiling sip/cpp/sip_gridwxGridCellDateTimeRenderer.cpp -[566/856] Compiling sip/cpp/sip_gridwxGridColumnHeaderRendererDefault.cpp -[567/856] Compiling sip/cpp/sip_gridwxGridRowHeaderRenderer.cpp +[564/856] Compiling sip/cpp/sip_gridwxGridTableBase.cpp +[565/856] Compiling sip/cpp/sip_gridwxGridCellNumberRenderer.cpp +[566/856] Compiling sip/cpp/sip_gridwxGridCellDateTimeRenderer.cpp +[567/856] Compiling sip/cpp/sip_gridwxGridColumnHeaderRendererDefault.cpp [568/856] Compiling sip/cpp/sip_gridwxGridCornerHeaderRenderer.cpp [569/856] Compiling sip/cpp/sip_gridwxGridCellFloatEditor.cpp [570/856] Compiling sip/cpp/sip_gridwxGridCellFloatRenderer.cpp [571/856] Compiling sip/cpp/sip_stcwxStyledTextCtrl.cpp [572/856] Compiling sip/cpp/sip_stccmodule.cpp [573/856] Compiling sip/cpp/sip_stcwxStyledTextEvent.cpp -[574/856] Compiling sip/cpp/sip_htmlwxHtmlHelpData.cpp -[575/856] Compiling sip/cpp/sip_htmlwxHtmlRenderingInfo.cpp +[574/856] Compiling sip/cpp/sip_htmlwxHtmlHelpDataItem.cpp +[575/856] Compiling sip/cpp/sip_htmlcmodule.cpp [576/856] Compiling sip/cpp/sip_htmlwxHtmlHelpDialog.cpp -[577/856] Compiling sip/cpp/sip_htmlwxHtmlHelpDataItems.cpp -[578/856] Compiling sip/cpp/sip_htmlwxHtmlHelpWindow.cpp -[579/856] Compiling sip/cpp/sip_htmlwxHtmlDCRenderer.cpp +[577/856] Compiling sip/cpp/sip_htmlwxHtmlRenderingInfo.cpp +[578/856] Compiling sip/cpp/sip_htmlwxHtmlFilter.cpp +[579/856] Compiling sip/cpp/sip_htmlwxHtmlHelpDataItems.cpp [580/856] Linking build/waf/2.7/gtk3/_grid.so [581/856] Compiling sip/cpp/sip_htmlwxHtmlBookRecord.cpp [582/856] Compiling sip/cpp/sip_htmlwxSimpleHtmlListBox.cpp [583/856] Compiling sip/cpp/sip_htmlwxHtmlWordWithTabsCell.cpp -[584/856] Compiling sip/cpp/sip_htmlwxHtmlFilter.cpp +[584/856] Compiling sip/cpp/sip_htmlwxHtmlDCRenderer.cpp [585/856] Compiling sip/cpp/sip_htmlwxHtmlRenderingState.cpp -[586/856] Compiling sip/cpp/sip_htmlwxHtmlCell.cpp -[587/856] Compiling sip/cpp/sip_htmlwxHtmlRenderingStyle.cpp +[586/856] Compiling sip/cpp/sip_htmlwxHtmlHelpData.cpp +[587/856] Compiling sip/cpp/sip_htmlwxHtmlWinParser.cpp [588/856] Compiling sip/cpp/sip_htmlwxHtmlSelection.cpp -[589/856] Compiling sip/cpp/sip_htmlwxHtmlTagHandler.cpp +[589/856] Compiling sip/cpp/sip_htmlwxHtmlHelpWindow.cpp [590/856] Compiling sip/cpp/sip_htmlwxHtmlTag.cpp [591/856] Compiling sip/cpp/sip_htmlwxHtmlWinTagHandler.cpp -[592/856] Compiling sip/cpp/sip_htmlwxHtmlPrintout.cpp -[593/856] Compiling sip/cpp/sip_htmlwxHtmlListBox.cpp -[594/856] Compiling sip/cpp/sip_htmlwxHtmlFontCell.cpp -[595/856] Compiling sip/cpp/sip_htmlwxHtmlHelpFrame.cpp -[596/856] Compiling sip/cpp/sip_htmlwxHtmlHelpController.cpp +[592/856] Compiling sip/cpp/sip_htmlwxHtmlFontCell.cpp +[593/856] Compiling sip/cpp/sip_htmlwxHtmlCell.cpp +[594/856] Compiling sip/cpp/sip_htmlwxHtmlPrintout.cpp +[595/856] Compiling sip/cpp/sip_htmlwxHtmlLinkInfo.cpp ../../../../sip/cpp/sip_htmlwxHtmlTag.cpp: In function 'PyObject* meth_wxHtmlTag_GetBeginPos(PyObject*, PyObject*)': ../../../../sip/cpp/sip_htmlwxHtmlTag.cpp:76:42: warning: 'int wxHtmlTag::GetBeginPos() const' is deprecated [-Wdeprecated-declarations] sipRes = sipCpp->GetBeginPos(); @@ -5182,184 +5215,187 @@ inline int wxHtmlTag::GetEndPos2() const { return int(m_End2 - m_sourceStart); } ^~~~~~~~~ -[597/856] Compiling sip/cpp/sip_htmlwxHtmlLinkInfo.cpp +[596/856] Compiling sip/cpp/sip_htmlwxHtmlListBox.cpp +[597/856] Compiling sip/cpp/sip_htmlwxHtmlHelpController.cpp [598/856] Compiling sip/cpp/sip_htmlwxHtmlContainerCell.cpp -[599/856] Compiling sip/cpp/sip_htmlwxHtmlColourCell.cpp -[600/856] Compiling sip/cpp/sip_htmlwxHtmlWordCell.cpp -[601/856] Linking build/waf/2.7/gtk3/_stc.so -[602/856] Compiling sip/cpp/sip_htmlwxHtmlModalHelp.cpp -[603/856] Compiling sip/cpp/sip_htmlwxHtmlCellEvent.cpp -[604/856] Compiling sip/cpp/sip_htmlwxHtmlHelpDataItem.cpp -[605/856] Compiling sip/cpp/sip_htmlwxHtmlBookRecArray.cpp +[599/856] Compiling sip/cpp/sip_htmlwxHtmlCellEvent.cpp +[600/856] Compiling sip/cpp/sip_htmlwxHtmlWindowInterface.cpp +[601/856] Compiling sip/cpp/sip_htmlwxHtmlModalHelp.cpp +[602/856] Compiling sip/cpp/sip_htmlwxHtmlColourCell.cpp +[603/856] Linking build/waf/2.7/gtk3/_stc.so +[604/856] Compiling sip/cpp/sip_htmlwxHtmlBookRecArray.cpp +[605/856] Compiling sip/cpp/sip_htmlwxHtmlTagHandler.cpp [606/856] Compiling sip/cpp/sip_htmlwxHtmlWidgetCell.cpp -[607/856] Compiling sip/cpp/sip_htmlwxHtmlEasyPrinting.cpp -[608/856] Compiling sip/cpp/sip_htmlwxHtmlWinParser.cpp +[607/856] Compiling sip/cpp/sip_htmlwxHtmlWordCell.cpp +[608/856] Compiling sip/cpp/sip_htmlwxHtmlHelpFrame.cpp [609/856] Compiling sip/cpp/sip_htmlwxHtmlLinkEvent.cpp [610/856] Compiling sip/cpp/sip_htmlwxHtmlWindow.cpp -[611/856] Compiling sip/cpp/sip_htmlcmodule.cpp +[611/856] Compiling sip/cpp/sip_htmlwxHtmlEasyPrinting.cpp [612/856] Compiling sip/cpp/sip_htmlwxHtmlParser.cpp -[613/856] Compiling sip/cpp/sip_htmlwxHtmlWindowInterface.cpp +[613/856] Compiling sip/cpp/sip_htmlwxHtmlRenderingStyle.cpp [614/856] Compiling sip/cpp/sip_glcanvaswxGLContext.cpp [615/856] Compiling sip/cpp/sip_glcanvaswxGLCanvas.cpp [616/856] Compiling sip/cpp/sip_glcanvascmodule.cpp -[617/856] Compiling sip/cpp/sip_html2wxWebViewEvent.cpp -[618/856] Compiling sip/cpp/sip_html2wxWebViewHistoryItem.cpp -[619/856] Compiling sip/cpp/sip_html2wxWebView.cpp +[617/856] Compiling sip/cpp/sip_html2wxWebView.cpp +[618/856] Compiling sip/cpp/sip_html2wxWebViewHandler.cpp +[619/856] Compiling sip/cpp/sip_html2wxWebViewEvent.cpp [620/856] Compiling sip/cpp/sip_html2wxWebViewFactory.cpp -[621/856] Compiling sip/cpp/sip_html2cmodule.cpp -[622/856] Compiling sip/cpp/sip_html2wxWebViewArchiveHandler.cpp -[623/856] Compiling sip/cpp/sip_html2wxWebViewHandler.cpp -[624/856] Compiling sip/cpp/sip_html2wxWebViewFSHandler.cpp -[625/856] Linking build/waf/2.7/gtk3/_html.so -[626/856] Linking build/waf/2.7/gtk3/_glcanvas.so +[621/856] Compiling sip/cpp/sip_html2wxWebViewHistoryItem.cpp +[622/856] Compiling sip/cpp/sip_html2wxWebViewFSHandler.cpp +[623/856] Linking build/waf/2.7/gtk3/_html.so +[624/856] Compiling sip/cpp/sip_html2cmodule.cpp +[625/856] Compiling sip/cpp/sip_html2wxWebViewArchiveHandler.cpp +[626/856] Compiling sip/cpp/sip_xmlcmodule.cpp [627/856] Compiling sip/cpp/sip_xmlwxXmlDocument.cpp -[628/856] Compiling sip/cpp/sip_xmlcmodule.cpp -[629/856] Compiling sip/cpp/sip_xmlwxXmlAttribute.cpp -[630/856] Compiling sip/cpp/sip_xmlwxXmlNode.cpp -[631/856] Compiling sip/cpp/sip_xrcwxXmlResourceHandler.cpp -[632/856] Compiling sip/cpp/sip_xrccmodule.cpp -[633/856] Compiling sip/cpp/sip_xrcwxXmlSubclassFactory.cpp -[634/856] Compiling sip/cpp/sip_xrcwxAnimation.cpp -[635/856] Compiling sip/cpp/sip_xrcwxXmlResource.cpp -[636/856] Linking build/waf/2.7/gtk3/_html2.so -[637/856] Compiling sip/cpp/sip_richtextwxRichTextCharacterStyleDefinition.cpp -[638/856] Compiling sip/cpp/sip_richtextwxRichTextStyleListCtrl.cpp -[639/856] Compiling sip/cpp/sip_richtextwxRichTextParagraphLayoutBox.cpp -[640/856] Compiling sip/cpp/sip_richtextwxRichTextRenderer.cpp +[628/856] Linking build/waf/2.7/gtk3/_glcanvas.so +[629/856] Compiling sip/cpp/sip_xmlwxXmlNode.cpp +[630/856] Compiling sip/cpp/sip_xmlwxXmlAttribute.cpp +[631/856] Compiling sip/cpp/sip_xrccmodule.cpp +[632/856] Compiling sip/cpp/sip_xrcwxXmlResource.cpp +[633/856] Compiling sip/cpp/sip_xrcwxXmlResourceHandler.cpp +[634/856] Compiling sip/cpp/sip_xrcwxXmlSubclassFactory.cpp +[635/856] Compiling sip/cpp/sip_xrcwxAnimation.cpp +[636/856] Compiling sip/cpp/sip_richtextwxRichTextFieldTypeStandard.cpp +[637/856] Linking build/waf/2.7/gtk3/_html2.so +[638/856] Compiling sip/cpp/sip_richtextwxTextAttrBorder.cpp +[639/856] Compiling sip/cpp/sip_richtextwxRichTextParagraphStyleDefinition.cpp +[640/856] Compiling sip/cpp/sip_richtextwxRichTextFormattingDialogFactory.cpp [641/856] Linking build/waf/2.7/gtk3/_xml.so [642/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingHandler.cpp -[643/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandlerList.cpp -[644/856] Compiling sip/cpp/sip_richtextwxRichTextCell.cpp -[645/856] Compiling sip/cpp/sip_richtextwxRichTextCtrl.cpp +[643/856] Compiling sip/cpp/sip_richtextwxRichTextCtrl.cpp +[644/856] Compiling sip/cpp/sip_richtextwxRichTextProperties.cpp +[645/856] Compiling sip/cpp/sip_richtextwxRichTextCell.cpp [646/856] Compiling sip/cpp/sip_richtextwxRichTextListStyleDefinition.cpp [647/856] Linking build/waf/2.7/gtk3/_xrc.so -[648/856] Compiling sip/cpp/sip_richtextwxRichTextStyleSheet.cpp -[649/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandlerList_iterator.cpp -[650/856] Compiling sip/cpp/sip_richtextwxRichTextPrintout.cpp -[651/856] Compiling sip/cpp/sip_richtextwxTextAttrBorders.cpp -[652/856] Compiling sip/cpp/sip_richtextwxRichTextLineList_iterator.cpp -[653/856] Compiling sip/cpp/sip_richtextwxRichTextBufferDataObject.cpp +[648/856] Compiling sip/cpp/sip_richtextwxRichTextRenderer.cpp +[649/856] Compiling sip/cpp/sip_richtextwxTextAttrBorders.cpp +[650/856] Compiling sip/cpp/sip_richtextwxRichTextBufferDataObject.cpp +[651/856] Compiling sip/cpp/sip_richtextwxRichTextPrintout.cpp +[652/856] Compiling sip/cpp/sip_richtextwxRichTextObjectPtrArray.cpp +[653/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList_iterator.cpp [654/856] Compiling sip/cpp/sip_richtextwxRichTextSelection.cpp [655/856] Compiling sip/cpp/sip_richtextwxRichTextPrinting.cpp -[656/856] Compiling sip/cpp/sip_richtextwxRichTextXMLHandler.cpp -[657/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList_iterator.cpp +[656/856] Compiling sip/cpp/sip_richtextwxRichTextRange.cpp +[657/856] Compiling sip/cpp/sip_richtextwxRichTextLineList_iterator.cpp [658/856] Compiling sip/cpp/sip_richtextwxRichTextAttrArray.cpp -[659/856] Compiling sip/cpp/sip_richtextwxRichTextRangeArray.cpp -[660/856] Compiling sip/cpp/sip_richtextwxSymbolPickerDialog.cpp -[661/856] Compiling sip/cpp/sip_richtextwxTextAttrDimensionConverter.cpp -[662/856] Compiling sip/cpp/sip_richtextwxRichTextRange.cpp -[663/856] Compiling sip/cpp/sip_richtextwxRichTextPlainTextHandler.cpp -[664/856] Compiling sip/cpp/sip_richtextwxRichTextParagraph.cpp -[665/856] Compiling sip/cpp/sip_richtextwxRichTextEvent.cpp -[666/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandler.cpp -[667/856] Compiling sip/cpp/sip_richtextwxRichTextLineList.cpp -[668/856] Compiling sip/cpp/sip_richtextwxRichTextActionList.cpp -[669/856] Compiling sip/cpp/sip_richtextwxRichTextFloatCollector.cpp -[670/856] Compiling sip/cpp/sip_richtextwxRichTextStyleOrganiserDialog.cpp +[659/856] Compiling sip/cpp/sip_richtextwxSymbolPickerDialog.cpp +[660/856] Compiling sip/cpp/sip_richtextwxRichTextTable.cpp +[661/856] Compiling sip/cpp/sip_richtextwxRichTextPlainTextHandler.cpp +[662/856] Compiling sip/cpp/sip_richtextwxRichTextXMLHandler.cpp +[663/856] Compiling sip/cpp/sip_richtextwxRichTextActionList.cpp +[664/856] Compiling sip/cpp/sip_richtextwxRichTextEvent.cpp +[665/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandler.cpp +[666/856] Compiling sip/cpp/sip_richtextwxRichTextStyleSheet.cpp +[667/856] Compiling sip/cpp/sip_richtextwxRichTextParagraph.cpp +[668/856] Compiling sip/cpp/sip_richtextwxRichTextFloatCollector.cpp +[669/856] Compiling sip/cpp/sip_richtextwxRichTextField.cpp +[670/856] Compiling sip/cpp/sip_richtextwxRichTextLineList.cpp [671/856] Compiling sip/cpp/sip_richtextwxRichTextVariantArray.cpp [672/856] Compiling sip/cpp/sip_richtextcmodule.cpp -[673/856] Compiling sip/cpp/sip_richtextwxRichTextImageBlock.cpp +[673/856] Compiling sip/cpp/sip_richtextwxRichTextStyleOrganiserDialog.cpp [674/856] Compiling sip/cpp/sip_richtextwxTextAttrDimension.cpp -[675/856] Compiling sip/cpp/sip_richtextwxRichTextField.cpp -[676/856] Compiling sip/cpp/sip_richtextwxRichTextStdRenderer.cpp -[677/856] Compiling sip/cpp/sip_richtextwxRichTextStyleListBox.cpp +[675/856] Compiling sip/cpp/sip_richtextwxRichTextStyleListBox.cpp +[676/856] Compiling sip/cpp/sip_richtextwxRichTextImageBlock.cpp +[677/856] Compiling sip/cpp/sip_richtextwxRichTextStdRenderer.cpp [678/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList__iterator.cpp [679/856] Compiling sip/cpp/sip_richtextwxRichTextLine.cpp [680/856] Compiling sip/cpp/sip_richtextwxRichTextAction.cpp -[681/856] Compiling sip/cpp/sip_richtextwxRichTextObjectAddress.cpp +[681/856] Compiling sip/cpp/sip_richtextwxRichTextPlainText.cpp [682/856] Compiling sip/cpp/sip_richtextwxRichTextHTMLHandler.cpp [683/856] Compiling sip/cpp/sip_richtextwxRichTextFontTable.cpp [684/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingHandlerList_iterator.cpp -[685/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingContext.cpp -[686/856] Compiling sip/cpp/sip_richtextwxRichTextCompositeObject.cpp +[685/856] Compiling sip/cpp/sip_richtextwxRichTextObjectAddress.cpp +[686/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingContext.cpp [687/856] Compiling sip/cpp/sip_richtextwxRichTextActionList_iterator.cpp -[688/856] Compiling sip/cpp/sip_richtextwxRichTextFieldType.cpp -[689/856] Compiling sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp -[690/856] Compiling sip/cpp/sip_richtextwxRichTextBuffer.cpp -[691/856] Compiling sip/cpp/sip_richtextwxRichTextPlainText.cpp -[692/856] Compiling sip/cpp/sip_richtextwxRichTextContextMenuPropertiesInfo.cpp +[688/856] Compiling sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp +[689/856] Compiling sip/cpp/sip_richtextwxRichTextContextMenuPropertiesInfo.cpp +[690/856] Compiling sip/cpp/sip_richtextwxRichTextBox.cpp +[691/856] Compiling sip/cpp/sip_richtextwxRichTextBuffer.cpp +[692/856] Compiling sip/cpp/sip_richtextwxTextAttrDimensions.cpp [693/856] Compiling sip/cpp/sip_richtextwxTextAttrSize.cpp -[694/856] Compiling sip/cpp/sip_richtextwxRichTextTable.cpp -[695/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList_.cpp -[696/856] Compiling sip/cpp/sip_richtextwxRichTextBox.cpp -[697/856] Compiling sip/cpp/sip_richtextwxTextAttrDimensions.cpp -[698/856] Compiling sip/cpp/sip_richtextwxRichTextAttr.cpp -[699/856] Compiling sip/cpp/sip_richtextwxRichTextStyleComboCtrl.cpp -[700/856] Compiling sip/cpp/sip_richtextwxTextBoxAttr.cpp -[701/856] Compiling sip/cpp/sip_richtextwxRichTextObjectPtrArrayArray.cpp -[702/856] Compiling sip/cpp/sip_richtextwxRichTextHeaderFooterData.cpp -[703/856] Compiling sip/cpp/sip_richtextwxRichTextFormattingDialogFactory.cpp -[704/856] Compiling sip/cpp/sip_richtextwxRichTextObjectPtrArray.cpp -[705/856] Compiling sip/cpp/sip_richtextwxTextAttrBorder.cpp -[706/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList.cpp -[707/856] Compiling sip/cpp/sip_richtextwxRichTextImage.cpp -[708/856] Compiling sip/cpp/sip_richtextwxRichTextProperties.cpp +[694/856] Compiling sip/cpp/sip_richtextwxRichTextStyleListCtrl.cpp +[695/856] Compiling sip/cpp/sip_richtextwxRichTextCompositeObject.cpp +[696/856] Compiling sip/cpp/sip_richtextwxRichTextFieldType.cpp +[697/856] Compiling sip/cpp/sip_richtextwxRichTextStyleComboCtrl.cpp +[698/856] Compiling sip/cpp/sip_richtextwxTextAttrDimensionConverter.cpp +[699/856] Compiling sip/cpp/sip_richtextwxTextBoxAttr.cpp +[700/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandlerList.cpp +[701/856] Compiling sip/cpp/sip_richtextwxRichTextCommand.cpp +[702/856] Compiling sip/cpp/sip_richtextwxRichTextParagraphLayoutBox.cpp +[703/856] Compiling sip/cpp/sip_richtextwxRichTextObjectPtrArrayArray.cpp +[704/856] Compiling sip/cpp/sip_richtextwxRichTextObject.cpp +[705/856] Compiling sip/cpp/sip_richtextwxRichTextRangeArray.cpp +[706/856] Compiling sip/cpp/sip_richtextwxRichTextStyleDefinition.cpp +[707/856] Compiling sip/cpp/sip_richtextwxRichTextAttr.cpp +[708/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandlerList_iterator.cpp [709/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingHandlerList.cpp -[710/856] Compiling sip/cpp/sip_richtextwxRichTextParagraphStyleDefinition.cpp -[711/856] Compiling sip/cpp/sip_richtextwxRichTextCommand.cpp -[712/856] Compiling sip/cpp/sip_richtextwxRichTextFieldTypeStandard.cpp -[713/856] Compiling sip/cpp/sip_richtextwxRichTextStyleDefinition.cpp -[714/856] Compiling sip/cpp/sip_richtextwxRichTextObject.cpp +[710/856] Compiling sip/cpp/sip_richtextwxRichTextHeaderFooterData.cpp +[711/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList_.cpp +[712/856] Compiling sip/cpp/sip_richtextwxRichTextCharacterStyleDefinition.cpp +[713/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList.cpp +[714/856] Compiling sip/cpp/sip_richtextwxRichTextImage.cpp [715/856] Compiling sip/cpp/sip_mediawxMediaEvent.cpp [716/856] Compiling sip/cpp/sip_mediawxMediaCtrl.cpp [717/856] Compiling sip/cpp/sip_mediacmodule.cpp [718/856] Compiling sip/cpp/sip_ribbonwxRibbonToolBar.cpp -[719/856] Compiling sip/cpp/sip_ribbonwxRibbonPageTabInfo.cpp +[719/856] Compiling sip/cpp/sip_ribbonwxRibbonButtonBarButtonBase.cpp [720/856] Compiling sip/cpp/sip_ribbonwxRibbonButtonBar.cpp [721/856] Compiling sip/cpp/sip_ribbonwxRibbonToolBarEvent.cpp [722/856] Compiling sip/cpp/sip_ribbonwxRibbonToolBarToolBase.cpp -[723/856] Compiling sip/cpp/sip_ribbonwxRibbonBarEvent.cpp -[724/856] Compiling sip/cpp/sip_ribbonwxRibbonPage.cpp -[725/856] Compiling sip/cpp/sip_ribboncmodule.cpp -[726/856] Linking build/waf/2.7/gtk3/_media.so -[727/856] Linking build/waf/2.7/gtk3/_richtext.so -[728/856] Compiling sip/cpp/sip_ribbonwxRibbonButtonBarButtonBase.cpp -[729/856] Compiling sip/cpp/sip_ribbonwxRibbonBar.cpp -[730/856] Compiling sip/cpp/sip_ribbonwxRibbonGallery.cpp -[731/856] Compiling sip/cpp/sip_ribbonwxRibbonControl.cpp -[732/856] Compiling sip/cpp/sip_ribbonwxRibbonGalleryItem.cpp -[733/856] Compiling sip/cpp/sip_ribbonwxRibbonArtProvider.cpp -[734/856] Compiling sip/cpp/sip_ribbonwxRibbonPanel.cpp -[735/856] Compiling sip/cpp/sip_ribbonwxRibbonGalleryEvent.cpp -[736/856] Compiling sip/cpp/sip_ribbonwxRibbonPanelEvent.cpp -[737/856] Compiling sip/cpp/sip_ribbonwxRibbonAUIArtProvider.cpp -[738/856] Compiling sip/cpp/sip_ribbonwxRibbonPageTabInfoArray.cpp -[739/856] Compiling sip/cpp/sip_ribbonwxRibbonMSWArtProvider.cpp +[723/856] Compiling sip/cpp/sip_ribbonwxRibbonGalleryItem.cpp +[724/856] Compiling sip/cpp/sip_ribbonwxRibbonControl.cpp +[725/856] Compiling sip/cpp/sip_ribbonwxRibbonPageTabInfoArray.cpp +[726/856] Compiling sip/cpp/sip_ribbonwxRibbonPage.cpp +[727/856] Linking build/waf/2.7/gtk3/_media.so +[728/856] Linking build/waf/2.7/gtk3/_richtext.so +[729/856] Compiling sip/cpp/sip_ribbonwxRibbonBarEvent.cpp +[730/856] Compiling sip/cpp/sip_ribbonwxRibbonPanelEvent.cpp +[731/856] Compiling sip/cpp/sip_ribbonwxRibbonPanel.cpp +[732/856] Compiling sip/cpp/sip_ribbonwxRibbonMSWArtProvider.cpp +[733/856] Compiling sip/cpp/sip_ribboncmodule.cpp +[734/856] Compiling sip/cpp/sip_ribbonwxRibbonAUIArtProvider.cpp +[735/856] Compiling sip/cpp/sip_ribbonwxRibbonGallery.cpp +[736/856] Compiling sip/cpp/sip_ribbonwxRibbonGalleryEvent.cpp +[737/856] Compiling sip/cpp/sip_ribbonwxRibbonBar.cpp +[738/856] Compiling sip/cpp/sip_ribbonwxRibbonArtProvider.cpp +[739/856] Compiling sip/cpp/sip_ribbonwxRibbonPageTabInfo.cpp [740/856] Compiling sip/cpp/sip_ribbonwxRibbonButtonBarEvent.cpp -[741/856] Compiling sip/cpp/sip_propgridwxLongStringProperty.cpp -[742/856] Compiling sip/cpp/sip_propgridwxPropertyGridPageState.cpp -[743/856] Compiling sip/cpp/sip_propgridwxPGCheckBoxEditor.cpp -[744/856] Compiling sip/cpp/sip_propgridwxPGVariant.cpp -[745/856] Compiling sip/cpp/sip_propgridwxDateProperty.cpp -[746/856] Compiling sip/cpp/sip_propgridwxPGFileDialogAdapter.cpp -[747/856] Compiling sip/cpp/sip_propgridwxArrayPGProperty.cpp -[748/856] Compiling sip/cpp/sip_propgridwxEditEnumProperty.cpp -[749/856] Compiling sip/cpp/sip_propgridwxPropertyGridHitTestResult.cpp -[750/856] Compiling sip/cpp/sip_propgridwxUIntProperty.cpp -[751/856] Compiling sip/cpp/sip_propgridwxImageFileProperty.cpp -[752/856] Compiling sip/cpp/sip_propgridwxPGChoiceEditor.cpp -[753/856] Linking build/waf/2.7/gtk3/_ribbon.so -[754/856] Compiling sip/cpp/sip_propgridwxPropertyCategory.cpp -[755/856] Compiling sip/cpp/sip_propgridwxFileProperty.cpp +[741/856] Compiling sip/cpp/sip_propgridwxPropertyGridEvent.cpp +[742/856] Compiling sip/cpp/sip_propgridwxPropertyGrid.cpp +[743/856] Compiling sip/cpp/sip_propgridwxMultiChoiceProperty.cpp +[744/856] Compiling sip/cpp/sip_propgridwxColourProperty.cpp +[745/856] Compiling sip/cpp/sip_propgridwxPGChoiceAndButtonEditor.cpp +[746/856] Compiling sip/cpp/sip_propgridwxPGComboBoxEditor.cpp +[747/856] Compiling sip/cpp/sip_propgridwxPGEditorDialogAdapter.cpp +[748/856] Compiling sip/cpp/sip_propgridwxArrayStringProperty.cpp +[749/856] Compiling sip/cpp/sip_propgridwxPGFileDialogAdapter.cpp +[750/856] Linking build/waf/2.7/gtk3/_ribbon.so +[751/856] Compiling sip/cpp/sip_propgridwxUIntProperty.cpp +[752/856] Compiling sip/cpp/sip_propgridwxPropertyGridHitTestResult.cpp +[753/856] Compiling sip/cpp/sip_propgridwxPGChoiceEditor.cpp +[754/856] Compiling sip/cpp/sip_propgridwxPropertyGridIterator.cpp +[755/856] Compiling sip/cpp/sip_propgridwxFontProperty.cpp [756/856] Compiling sip/cpp/sip_propgridwxPGMultiButton.cpp -[757/856] Compiling sip/cpp/sip_propgridwxPropertyGridIterator.cpp -[758/856] Compiling sip/cpp/sip_propgridwxPropertyGridPage.cpp -[759/856] Compiling sip/cpp/sip_propgridwxColourProperty.cpp -[760/856] Compiling sip/cpp/sip_propgridwxPropertyGridManager.cpp +[757/856] Compiling sip/cpp/sip_propgridwxPGInDialogValidator.cpp +[758/856] Compiling sip/cpp/sip_propgridwxFileProperty.cpp +[759/856] Compiling sip/cpp/sip_propgridwxPropertyGridManager.cpp +[760/856] Compiling sip/cpp/sip_propgridwxColourPropertyValue.cpp [761/856] Compiling sip/cpp/sip_propgridwxPGPropArgCls.cpp -[762/856] Compiling sip/cpp/sip_propgridwxPGVariantList.cpp -[763/856] Compiling sip/cpp/sip_propgridwxSystemColourProperty.cpp +[762/856] Compiling sip/cpp/sip_propgridwxFloatProperty.cpp +[763/856] Compiling sip/cpp/sip_propgridwxPropertyCategory.cpp [764/856] Compiling sip/cpp/sip_propgridwxPGProperty.cpp [765/856] Compiling sip/cpp/sip_propgridwxFlagsProperty.cpp [766/856] Compiling sip/cpp/sip_propgridwxPGDefaultRenderer.cpp -[767/856] Compiling sip/cpp/sip_propgridwxPGEditorDialogAdapter.cpp -[768/856] Compiling sip/cpp/sip_propgridwxPropertyGridInterface.cpp -[769/856] Compiling sip/cpp/sip_propgridwxPGCellRenderer.cpp +[767/856] Compiling sip/cpp/sip_propgridwxPGVariantList.cpp +[768/856] Compiling sip/cpp/sip_propgridwxPGEditor.cpp +[769/856] Compiling sip/cpp/sip_propgridwxPGWindowList.cpp [770/856] Compiling sip/cpp/sip_propgridwxPGChoicesData.cpp -[771/856] Compiling sip/cpp/sip_propgridwxCursorProperty.cpp -[772/856] Compiling sip/cpp/sip_propgridwxArrayStringProperty.cpp -[773/856] Compiling sip/cpp/sip_propgridwxPGInDialogValidator.cpp -[774/856] Compiling sip/cpp/sip_propgridwxPGChoiceEntry.cpp +[771/856] Compiling sip/cpp/sip_propgridwxPropertyGridPage.cpp +[772/856] Compiling sip/cpp/sip_propgridwxCursorProperty.cpp +[773/856] Compiling sip/cpp/sip_propgridwxPropertyGridInterface.cpp +[774/856] Compiling sip/cpp/sip_propgridwxSystemColourProperty.cpp +[775/856] Compiling sip/cpp/sip_propgridwxPGCellRenderer.cpp +[776/856] Compiling sip/cpp/sip_propgridwxPGArrayStringEditorDialog.cpp ../../../../sip/cpp/sip_propgridwxPGProperty.cpp: In function 'PyObject* meth_wxPGProperty_AddChild(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_propgridwxPGProperty.cpp:1402:34: warning: 'void wxPGProperty::AddChild(wxPGProperty*)' is deprecated [-Wdeprecated-declarations] sipCpp->AddChild(prop); @@ -5389,72 +5425,70 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ -[775/856] Compiling sip/cpp/sip_propgridwxPGArrayStringEditorDialog.cpp -[776/856] Compiling sip/cpp/sip_propgridwxPGWindowList.cpp -[777/856] Compiling sip/cpp/sip_propgridwxPGArrayEditorDialog.cpp -[778/856] Compiling sip/cpp/sip_propgridwxPGVIterator.cpp -[779/856] Compiling sip/cpp/sip_propgridwxPropertyGrid.cpp -[780/856] Compiling sip/cpp/sip_propgridwxPGTextCtrlAndButtonEditor.cpp -[781/856] Compiling sip/cpp/sip_propgridwxPGPaintData.cpp -[782/856] Compiling sip/cpp/sip_propgridwxIntProperty.cpp +[777/856] Compiling sip/cpp/sip_propgridwxIntProperty.cpp +[778/856] Compiling sip/cpp/sip_propgridwxPGChoiceEntry.cpp +[779/856] Compiling sip/cpp/sip_propgridwxPropertyGridPageState.cpp +[780/856] Compiling sip/cpp/sip_propgridwxLongStringProperty.cpp +[781/856] Compiling sip/cpp/sip_propgridwxPGCheckBoxEditor.cpp +[782/856] Compiling sip/cpp/sip_propgridwxPGTextCtrlAndButtonEditor.cpp [783/856] Compiling sip/cpp/sip_propgridwxPGCell.cpp -[784/856] Compiling sip/cpp/sip_propgridwxMultiChoiceProperty.cpp -[785/856] Compiling sip/cpp/sip_propgridwxPGLongStringDialogAdapter.cpp -[786/856] Compiling sip/cpp/sip_propgridwxPGEditor.cpp +[784/856] Compiling sip/cpp/sip_propgridwxEnumProperty.cpp +[785/856] Compiling sip/cpp/sip_propgridwxDirProperty.cpp +[786/856] Compiling sip/cpp/sip_propgridwxPGPaintData.cpp [787/856] Compiling sip/cpp/sip_propgridwxPropertyGridIteratorBase.cpp -[788/856] Compiling sip/cpp/sip_propgridwxNumericPropertyValidator.cpp -[789/856] Compiling sip/cpp/sip_propgridwxPropertyGridEvent.cpp -[790/856] Compiling sip/cpp/sip_propgridwxColourPropertyValue.cpp -[791/856] Compiling sip/cpp/sip_propgridwxPGValidationInfo.cpp -[792/856] Compiling sip/cpp/sip_propgridwxPGTextCtrlEditor.cpp -[793/856] Compiling sip/cpp/sip_propgridwxPGComboBoxEditor.cpp -[794/856] Compiling sip/cpp/sip_propgridwxFontProperty.cpp -[795/856] Compiling sip/cpp/sip_propgridcmodule.cpp -[796/856] Compiling sip/cpp/sip_propgridwxPGChoices.cpp -[797/856] Compiling sip/cpp/sip_propgridwxFloatProperty.cpp +[788/856] Compiling sip/cpp/sip_propgridwxPGCellData.cpp +[789/856] Compiling sip/cpp/sip_propgridwxPGSpinCtrlEditor.cpp +[790/856] Compiling sip/cpp/sip_propgridwxEditEnumProperty.cpp +[791/856] Compiling sip/cpp/sip_propgridcmodule.cpp +[792/856] Compiling sip/cpp/sip_propgridwxPGChoices.cpp +[793/856] Compiling sip/cpp/sip_propgridwxDateProperty.cpp +[794/856] Compiling sip/cpp/sip_propgridwxPGValidationInfo.cpp +[795/856] Compiling sip/cpp/sip_propgridwxPGVariant.cpp +[796/856] Compiling sip/cpp/sip_propgridwxArrayPGProperty.cpp +[797/856] Compiling sip/cpp/sip_propgridwxImageFileProperty.cpp [798/856] Compiling sip/cpp/sip_propgridwxStringProperty.cpp -[799/856] Compiling sip/cpp/sip_propgridwxPGCellData.cpp -[800/856] Compiling sip/cpp/sip_propgridwxEnumProperty.cpp -[801/856] Compiling sip/cpp/sip_propgridwxPGChoiceAndButtonEditor.cpp -[802/856] Compiling sip/cpp/sip_propgridwxDirProperty.cpp -[803/856] Compiling sip/cpp/sip_propgridwxPGSpinCtrlEditor.cpp -[804/856] Compiling sip/cpp/sip_propgridwxBoolProperty.cpp -[805/856] Compiling sip/cpp/sip_auiwxAuiToolBarItemArray.cpp -[806/856] Compiling sip/cpp/sip_auiwxAuiMDIClientWindow.cpp -[807/856] Compiling sip/cpp/sip_auiwxAuiDockInfoArray.cpp +[799/856] Compiling sip/cpp/sip_propgridwxPGArrayEditorDialog.cpp +[800/856] Compiling sip/cpp/sip_propgridwxPGTextCtrlEditor.cpp +[801/856] Compiling sip/cpp/sip_propgridwxNumericPropertyValidator.cpp +[802/856] Compiling sip/cpp/sip_propgridwxBoolProperty.cpp +[803/856] Compiling sip/cpp/sip_propgridwxPGLongStringDialogAdapter.cpp +[804/856] Compiling sip/cpp/sip_propgridwxPGVIterator.cpp +[805/856] Compiling sip/cpp/sip_auiwxAuiManager.cpp +[806/856] Compiling sip/cpp/sip_auiwxAuiTabContainerButton.cpp +[807/856] Compiling sip/cpp/sip_auiwxAuiPaneInfoArray.cpp [808/856] Compiling sip/cpp/sip_auiwxAuiNotebook.cpp -[809/856] Compiling sip/cpp/sip_auiwxAuiTabArt.cpp -[810/856] Compiling sip/cpp/sip_auiwxAuiPaneButtonArray.cpp -[811/856] Compiling sip/cpp/sip_auiwxAuiPaneInfoArray.cpp -[812/856] Compiling sip/cpp/sip_auiwxAuiDockUIPartArray.cpp -[813/856] Compiling sip/cpp/sip_auiwxAuiDockArt.cpp +[809/856] Compiling sip/cpp/sip_auiwxAuiToolBarItem.cpp +[810/856] Compiling sip/cpp/sip_auiwxAuiSimpleTabArt.cpp +[811/856] Compiling sip/cpp/sip_auiwxAuiNotebookEvent.cpp +[812/856] Compiling sip/cpp/sip_auicmodule.cpp +[813/856] Compiling sip/cpp/sip_auiwxAuiPaneButtonArray.cpp [814/856] Linking build/waf/2.7/gtk3/_propgrid.so -[815/856] Compiling sip/cpp/sip_auiwxAuiTabContainerButton.cpp -[816/856] Compiling sip/cpp/sip_auiwxAuiMDIParentFrame.cpp -[817/856] Compiling sip/cpp/sip_auiwxAuiNotebookPageArray.cpp -[818/856] Compiling sip/cpp/sip_auiwxAuiDefaultTabArt.cpp -[819/856] Compiling sip/cpp/sip_auiwxAuiTabContainer.cpp -[820/856] Compiling sip/cpp/sip_auiwxAuiDefaultDockArt.cpp +[815/856] Compiling sip/cpp/sip_auiwxAuiMDIParentFrame.cpp +[816/856] Compiling sip/cpp/sip_auiwxAuiToolBarItemArray.cpp +[817/856] Compiling sip/cpp/sip_auiwxAuiTabArt.cpp +[818/856] Compiling sip/cpp/sip_auiwxAuiManagerEvent.cpp +[819/856] Compiling sip/cpp/sip_auiwxAuiPaneButton.cpp +[820/856] Compiling sip/cpp/sip_auiwxAuiDockInfoPtrArray.cpp [821/856] Compiling sip/cpp/sip_auiwxAuiTabContainerButtonArray.cpp [822/856] Compiling sip/cpp/sip_auiwxAuiDefaultToolBarArt.cpp -[823/856] Compiling sip/cpp/sip_auiwxAuiDockInfo.cpp -[824/856] Compiling sip/cpp/sip_auiwxAuiToolBar.cpp -[825/856] Compiling sip/cpp/sip_auiwxAuiTabCtrl.cpp -[826/856] Compiling sip/cpp/sip_auiwxAuiManager.cpp +[823/856] Compiling sip/cpp/sip_auiwxAuiDefaultDockArt.cpp +[824/856] Compiling sip/cpp/sip_auiwxAuiMDIClientWindow.cpp +[825/856] Compiling sip/cpp/sip_auiwxAuiNotebookPageArray.cpp +[826/856] Compiling sip/cpp/sip_auiwxAuiToolBar.cpp [827/856] Compiling sip/cpp/sip_auiwxAuiNotebookPage.cpp -[828/856] Compiling sip/cpp/sip_auiwxAuiDockInfoPtrArray.cpp -[829/856] Compiling sip/cpp/sip_auiwxAuiSimpleTabArt.cpp -[830/856] Compiling sip/cpp/sip_auiwxAuiPaneInfo.cpp -[831/856] Compiling sip/cpp/sip_auiwxAuiPaneButton.cpp -[832/856] Compiling sip/cpp/sip_auiwxAuiDockUIPart.cpp -[833/856] Compiling sip/cpp/sip_auiwxAuiToolBarItem.cpp -[834/856] Compiling sip/cpp/sip_auiwxAuiPaneInfoPtrArray.cpp -[835/856] Compiling sip/cpp/sip_auiwxAuiManagerEvent.cpp +[828/856] Compiling sip/cpp/sip_auiwxAuiTabContainer.cpp +[829/856] Compiling sip/cpp/sip_auiwxAuiToolBarArt.cpp +[830/856] Compiling sip/cpp/sip_auiwxAuiDockUIPart.cpp +[831/856] Compiling sip/cpp/sip_auiwxAuiPaneInfo.cpp +[832/856] Compiling sip/cpp/sip_auiwxAuiDockArt.cpp +[833/856] Compiling sip/cpp/sip_auiwxAuiDockInfo.cpp +[834/856] Compiling sip/cpp/sip_auiwxAuiDefaultTabArt.cpp +[835/856] Compiling sip/cpp/sip_auiwxAuiTabCtrl.cpp [836/856] Compiling sip/cpp/sip_auiwxAuiMDIChildFrame.cpp -[837/856] Compiling sip/cpp/sip_auiwxAuiNotebookEvent.cpp -[838/856] Compiling sip/cpp/sip_auicmodule.cpp -[839/856] Compiling sip/cpp/sip_auiwxAuiToolBarEvent.cpp -[840/856] Compiling sip/cpp/sip_auiwxAuiToolBarArt.cpp +[837/856] Compiling sip/cpp/sip_auiwxAuiPaneInfoPtrArray.cpp +[838/856] Compiling sip/cpp/sip_auiwxAuiToolBarEvent.cpp +[839/856] Compiling sip/cpp/sip_auiwxAuiDockUIPartArray.cpp +[840/856] Compiling sip/cpp/sip_auiwxAuiDockInfoArray.cpp [841/856] Compiling build/waf/2.7/gtk3/_core.so [842/856] Compiling build/waf/2.7/gtk3/_adv.so [843/856] Compiling build/waf/2.7/gtk3/_dataview.so @@ -5472,7 +5506,7 @@ [855/856] Linking build/waf/2.7/gtk3/_aui.so [856/856] Compiling build/waf/2.7/gtk3/_aui.so Waf: Leaving directory `/build/wxpython4.0-4.0.4+dfsg/build/waf/2.7/gtk3' -'build' finished successfully (18m29.056s) +'build' finished successfully (1h35m49.275s) ------------ BUILD FINISHED ------------ To use wxPython from the build folder (without installing): @@ -5480,7 +5514,7 @@ - You may also need to set your (DY)LD_LIBRARY_PATH to /build/wxpython4.0-4.0.4+dfsg/build/wxbld/gtk3/lib, or wherever the wxWidgets libs have been installed. -Finished command: build_py (18m31.857s) +Finished command: build_py (95m57.264s) Running command: bdist_egg "/usr/bin/python2.7" setup.py bdist_egg --skip-build running bdist_egg @@ -6920,7 +6954,7 @@ creating dist creating 'dist/wxPython-4.0.4-py2.7-linux-arm64.egg' and adding 'build/bdist.linux-arm64/egg' to it removing 'build/bdist.linux-arm64/egg' (and everything under it) -Finished command: bdist_egg (42.182s) +Finished command: bdist_egg (49.766s) Done! I: pybuild base:217: python3.7 -u build.py dox touch etg --nodoc sip build_py --use_syswx --gtk3 Will build using: "/usr/bin/python3.7" @@ -6931,10 +6965,10 @@ Running command: dox bash ./regen.sh xml -Finished command: dox (0m29.227s) +Finished command: dox (0m39.89s) Running command: touch touch etg/*.py -Finished command: touch (0.6s) +Finished command: touch (0.21s) Running command: etg "/usr/bin/python3.7" etg/_core.py --sip --nodoc "/usr/bin/python3.7" etg/_xrc.py --sip --nodoc @@ -7208,31 +7242,31 @@ "/usr/bin/python3.7" etg/richtextstyledlg.py --sip --nodoc "/usr/bin/python3.7" etg/richtextsymboldlg.py --sip --nodoc "/usr/bin/python3.7" etg/richtextformatdlg.py --sip --nodoc -Finished command: etg (2m35.684s) +Finished command: etg (3m23.287s) Running command: sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpmbvjickx -b sip/cpp/_core.sbf -X pycode_core:wx/core.py sip/gen/_core.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpixhhxvft -b sip/cpp/_richtext.sbf -X pycode_richtext:wx/richtext.py sip/gen/_richtext.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp8s3d6k_5 -b sip/cpp/_html.sbf -X pycode_html:wx/html.py sip/gen/_html.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmprk3orna2 -b sip/cpp/_html2.sbf -X pycode_html2:wx/html2.py sip/gen/_html2.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp15ypw3t6 -b sip/cpp/_ribbon.sbf -X pycode_ribbon:wx/ribbon.py sip/gen/_ribbon.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpt52ibi41 -b sip/cpp/_media.sbf -X pycode_media:wx/media.py sip/gen/_media.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpkk_qlxmz -b sip/cpp/_webkit.sbf -X pycode_webkit:wx/webkit.py sip/gen/_webkit.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpmzv17vlm -b sip/cpp/_msw.sbf -X pycode_msw:wx/msw.py sip/gen/_msw.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp9nol9o6b -b sip/cpp/_glcanvas.sbf -X pycode_glcanvas:wx/glcanvas.py sip/gen/_glcanvas.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpctf88lvh -b sip/cpp/_propgrid.sbf -X pycode_propgrid:wx/propgrid.py sip/gen/_propgrid.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp8xm18wmt -b sip/cpp/_dataview.sbf -X pycode_dataview:wx/dataview.py sip/gen/_dataview.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp85algsee -b sip/cpp/_grid.sbf -X pycode_grid:wx/grid.py sip/gen/_grid.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp4xf7zowt -b sip/cpp/_adv.sbf -X pycode_adv:wx/adv.py sip/gen/_adv.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpum3ftquf -b sip/cpp/_aui.sbf -X pycode_aui:wx/aui.py sip/gen/_aui.sip -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpijsjqyac -b sip/cpp/_xml.sbf -X pycode_xml:wx/xml.py sip/gen/_xml.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpo5m6pizo -b sip/cpp/_core.sbf -X pycode_core:wx/core.py sip/gen/_core.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpgkptlk70 -b sip/cpp/_richtext.sbf -X pycode_richtext:wx/richtext.py sip/gen/_richtext.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpycncoehq -b sip/cpp/_html.sbf -X pycode_html:wx/html.py sip/gen/_html.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpafhfmnrg -b sip/cpp/_html2.sbf -X pycode_html2:wx/html2.py sip/gen/_html2.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpn7ym5y0z -b sip/cpp/_ribbon.sbf -X pycode_ribbon:wx/ribbon.py sip/gen/_ribbon.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpj4_sp4rq -b sip/cpp/_media.sbf -X pycode_media:wx/media.py sip/gen/_media.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpb2inbdgc -b sip/cpp/_webkit.sbf -X pycode_webkit:wx/webkit.py sip/gen/_webkit.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpaixkgu2m -b sip/cpp/_msw.sbf -X pycode_msw:wx/msw.py sip/gen/_msw.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpbutgrwkb -b sip/cpp/_glcanvas.sbf -X pycode_glcanvas:wx/glcanvas.py sip/gen/_glcanvas.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpsqjfurlx -b sip/cpp/_propgrid.sbf -X pycode_propgrid:wx/propgrid.py sip/gen/_propgrid.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpj0f_2jqx -b sip/cpp/_dataview.sbf -X pycode_dataview:wx/dataview.py sip/gen/_dataview.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpcn7xq2c7 -b sip/cpp/_grid.sbf -X pycode_grid:wx/grid.py sip/gen/_grid.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp7uztmr0e -b sip/cpp/_adv.sbf -X pycode_adv:wx/adv.py sip/gen/_adv.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpdlr2pzqp -b sip/cpp/_aui.sbf -X pycode_aui:wx/aui.py sip/gen/_aui.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpk2tow_1g -b sip/cpp/_xml.sbf -X pycode_xml:wx/xml.py sip/gen/_xml.sip sip_xmlwxXmlDocument.cpp is changed, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp81ojng53 -b sip/cpp/_stc.sbf -X pycode_stc:wx/stc.py sip/gen/_stc.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmp993r2z96 -b sip/cpp/_stc.sbf -X pycode_stc:wx/stc.py sip/gen/_stc.sip sip_stcwxStyledTextCtrl.cpp is changed, copying... -/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpft1wxg2s -b sip/cpp/_xrc.sbf -X pycode_xrc:wx/xrc.py sip/gen/_xrc.sip +/usr/bin/sip -w -o -g -I /build/wxpython4.0-4.0.4+dfsg/src -I /build/wxpython4.0-4.0.4+dfsg/sip/gen -c /tmp/tmpobp2riob -b sip/cpp/_xrc.sbf -X pycode_xrc:wx/xrc.py sip/gen/_xrc.sip sip_xrcwxXmlResource.cpp is changed, copying... sip_xrcwxXmlResourceHandler.cpp is changed, copying... sip_xrcwxXmlSubclassFactory.cpp is changed, copying... -Finished command: sip (2m28.379s) +Finished command: sip (3m38.790s) Running command: build_py Checking for /build/wxpython4.0-4.0.4+dfsg/bin/waf-2.0.8... "/usr/bin/python3.7" /build/wxpython4.0-4.0.4+dfsg/bin/waf-2.0.8 --wx_config=wx-config --gtk3 --python="/usr/bin/python3.7" --out=build/waf/3.7/gtk3 configure build @@ -7260,7 +7294,7 @@ Finding libs for WXRIBBON : yes Finding libs for WXPROPGRID : yes Finding libs for WXAUI : yes -'configure' finished successfully (2.340s) +'configure' finished successfully (6.174s) Waf: Entering directory `/build/wxpython4.0-4.0.4+dfsg/build/waf/3.7/gtk3' [ 1/856] Compiling sip/cpp/sip_corewxMenuList_iterator.cpp [ 2/856] Compiling sip/cpp/sip_corewxFileSystemWatcher.cpp @@ -7277,21 +7311,28 @@ [ 13/856] Compiling sip/cpp/sip_corewxMemoryDC.cpp [ 14/856] Compiling sip/cpp/sip_corewxLongLong.cpp [ 15/856] Compiling sip/cpp/sip_corewxLogWindow.cpp -[ 16/856] Compiling sip/cpp/sip_corewxFileDirPickerEvent.cpp -[ 17/856] Compiling sip/cpp/sip_corewxLogTextCtrl.cpp -[ 18/856] Compiling sip/cpp/sip_corewxArchiveFSHandler.cpp +[ 16/856] Compiling sip/cpp/sip_corewxArchiveFSHandler.cpp +[ 17/856] Compiling sip/cpp/sip_corewxFileDirPickerEvent.cpp +[ 18/856] Compiling sip/cpp/sip_corewxLogStderr.cpp [ 19/856] Compiling sip/cpp/sip_corewxFileDialog.cpp -[ 20/856] Compiling sip/cpp/sip_corewxComboCtrl.cpp +[ 20/856] Compiling sip/cpp/sip_corewxLogTextCtrl.cpp [ 21/856] Compiling sip/cpp/sip_corewxLogRecordInfo.cpp [ 22/856] Compiling sip/cpp/sip_corewxLogNull.cpp -[ 23/856] Compiling sip/cpp/sip_corewxLogStderr.cpp +[ 23/856] Compiling sip/cpp/sip_corewxFileDataObject.cpp [ 24/856] Compiling sip/cpp/sip_corewxLogInterposerTemp.cpp [ 25/856] Compiling sip/cpp/sip_corewxLogInterposer.cpp -[ 26/856] Compiling sip/cpp/sip_corewxFileDataObject.cpp +[ 26/856] Compiling sip/cpp/sip_corewxComboCtrl.cpp [ 27/856] Compiling sip/cpp/sip_corewxComboBox.cpp [ 28/856] Compiling sip/cpp/sip_corewxBrush.cpp [ 29/856] Compiling sip/cpp/sip_corewxLogGui.cpp [ 30/856] Compiling sip/cpp/sip_corewxLogFormatter.cpp +[ 31/856] Compiling sip/cpp/sip_corewxFileCtrl.cpp +[ 32/856] Compiling sip/cpp/sip_corewxFileCtrlEvent.cpp +[ 33/856] Compiling sip/cpp/sip_corewxLogChain.cpp +[ 34/856] Compiling sip/cpp/sip_corewxXPMHandler.cpp +[ 35/856] Compiling sip/cpp/sip_corewxLogBuffer.cpp +[ 36/856] Compiling sip/cpp/sip_corewxFileConfig.cpp +[ 37/856] Compiling sip/cpp/sip_corewxColourPickerEvent.cpp ../../../../sip/cpp/sip_corewxComboCtrl.cpp: In function 'PyObject* meth_wxComboCtrl_GetTextIndent(PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxComboCtrl.cpp:2191:44: warning: 'wxCoord wxComboCtrlBase::GetTextIndent() const' is deprecated [-Wdeprecated-declarations] sipRes = sipCpp->GetTextIndent(); @@ -7321,43 +7362,36 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ -[ 31/856] Compiling sip/cpp/sip_corewxFileCtrl.cpp -[ 32/856] Compiling sip/cpp/sip_corewxXPMHandler.cpp -[ 33/856] Compiling sip/cpp/sip_corewxFileCtrlEvent.cpp -[ 34/856] Compiling sip/cpp/sip_corewxWrapSizer.cpp -[ 35/856] Compiling sip/cpp/sip_corewxLogBuffer.cpp -[ 36/856] Compiling sip/cpp/sip_corewxFileConfig.cpp -[ 37/856] Compiling sip/cpp/sip_corewxColourPickerEvent.cpp [ 38/856] Compiling sip/cpp/sip_corewxWithImages.cpp [ 39/856] Compiling sip/cpp/sip_corewxWindowModalDialogEvent.cpp [ 40/856] Compiling sip/cpp/sip_corewxLog.cpp [ 41/856] Compiling sip/cpp/sip_corewxWindowList_iterator.cpp [ 42/856] Compiling sip/cpp/sip_corewxWindowList.cpp [ 43/856] Compiling sip/cpp/sip_corewxLocale.cpp -[ 44/856] Compiling sip/cpp/sip_corewxFSFile.cpp -[ 45/856] Compiling sip/cpp/sip_corewxWindowIDRef.cpp +[ 44/856] Compiling sip/cpp/sip_corewxWrapSizer.cpp +[ 45/856] Compiling sip/cpp/sip_corewxFSFile.cpp [ 46/856] Compiling sip/cpp/sip_corewxWindowDisabler.cpp [ 47/856] Compiling sip/cpp/sip_corewxListbook.cpp [ 48/856] Compiling sip/cpp/sip_corewxWindowDestroyEvent.cpp [ 49/856] Compiling sip/cpp/sip_corewxWindowDC.cpp [ 50/856] Compiling sip/cpp/sip_corewxListView.cpp [ 51/856] Compiling sip/cpp/sip_corewxExecuteEnv.cpp -[ 52/856] Compiling sip/cpp/sip_corewxColourPickerCtrl.cpp -[ 53/856] Compiling sip/cpp/sip_corewxBoxSizer.cpp +[ 52/856] Compiling sip/cpp/sip_corewxWindowIDRef.cpp +[ 53/856] Compiling sip/cpp/sip_corewxColourPickerCtrl.cpp [ 54/856] Compiling sip/cpp/sip_corewxAppTraits.cpp [ 55/856] Compiling sip/cpp/sip_corewxActivateEvent.cpp [ 56/856] Compiling sip/cpp/sip_corewxWindowCreateEvent.cpp -[ 57/856] Compiling sip/cpp/sip_corewxLogChain.cpp +[ 57/856] Compiling sip/cpp/sip_corewxWindowChildrenRepositioningGuard.cpp [ 58/856] Compiling sip/cpp/sip_corewxListItemAttr.cpp [ 59/856] Compiling sip/cpp/sip_corewxWindowBase.cpp [ 60/856] Compiling sip/cpp/sip_corewxWindow.cpp [ 61/856] Compiling sip/cpp/sip_corewxListItem.cpp [ 62/856] Compiling sip/cpp/sip_corewxEvtHandler.cpp -[ 63/856] Compiling sip/cpp/sip_corewxVisualAttributes.cpp -[ 64/856] Compiling sip/cpp/sip_corewxWindowChildrenRepositioningGuard.cpp +[ 63/856] Compiling sip/cpp/sip_corewxBoxSizer.cpp +[ 64/856] Compiling sip/cpp/sip_corewxVideoMode.cpp [ 65/856] Compiling sip/cpp/sip_corewxListEvent.cpp [ 66/856] Compiling sip/cpp/sip_corewxVersionInfo.cpp -[ 67/856] Compiling sip/cpp/sip_corewxVariantList.cpp +[ 67/856] Compiling sip/cpp/sip_corewxVisualAttributes.cpp [ 68/856] Compiling sip/cpp/sip_corewxListCtrl.cpp [ 69/856] Compiling sip/cpp/sip_corewxEventLoopBase.cpp [ 70/856] Compiling sip/cpp/sip_corewxColourDialog.cpp @@ -7376,7 +7410,7 @@ [ 83/856] Compiling sip/cpp/sip_corewxLanguageInfo.cpp [ 84/856] Compiling sip/cpp/sip_corewxEventFilter.cpp [ 85/856] Compiling sip/cpp/sip_corewxColourDatabase.cpp -[ 86/856] Compiling sip/cpp/sip_corewxBookCtrlEvent.cpp +[ 86/856] Compiling sip/cpp/sip_corewxVariantList.cpp [ 87/856] Compiling sip/cpp/sip_corewxUpdateUIEvent.cpp [ 88/856] Compiling sip/cpp/sip_corewxUniChar.cpp [ 89/856] Compiling sip/cpp/sip_corewxKeyboardState.cpp @@ -7517,8 +7551,8 @@ [ 97/856] Compiling sip/cpp/sip_corewxTreebook.cpp [ 98/856] Compiling sip/cpp/sip_corewxTreeItemId.cpp [ 99/856] Compiling sip/cpp/sip_corewxJPEGHandler.cpp -[100/856] Compiling sip/cpp/sip_corewxVideoMode.cpp -[101/856] Compiling sip/cpp/sip_corewxEvent.cpp +[100/856] Compiling sip/cpp/sip_corewxEvent.cpp +[101/856] Compiling sip/cpp/sip_corewxColourData.cpp [102/856] Compiling sip/cpp/sip_corewxTreeItemData.cpp [103/856] Compiling sip/cpp/sip_corewxTreeEvent.cpp [104/856] Compiling sip/cpp/sip_corewxItemContainerImmutable.cpp @@ -7539,7 +7573,7 @@ [119/856] Compiling sip/cpp/sip_corewxToolTip.cpp [120/856] Compiling sip/cpp/sip_corewxToolBarToolBase.cpp [121/856] Compiling sip/cpp/sip_corewxIntCArrayHolder.cpp -[122/856] Compiling sip/cpp/sip_corewxColourData.cpp +[122/856] Compiling sip/cpp/sip_corewxToolBar.cpp [123/856] Compiling sip/cpp/sip_corewxToggleButton.cpp [124/856] Compiling sip/cpp/sip_corewxInputStream.cpp [125/856] Compiling sip/cpp/sip_corewxDropSource.cpp @@ -7548,28 +7582,30 @@ [128/856] Compiling sip/cpp/sip_corewxInitDialogEvent.cpp [129/856] Compiling sip/cpp/sip_corewxTimerEvent.cpp [130/856] Compiling sip/cpp/sip_corewxTimer.cpp -[131/856] Compiling sip/cpp/sip_corewxToolBar.cpp +[131/856] Compiling sip/cpp/sip_corewxBookCtrlEvent.cpp [132/856] Compiling sip/cpp/sip_corewxDropFilesEvent.cpp [133/856] Compiling sip/cpp/sip_corewxCollapsiblePaneEvent.cpp [134/856] Compiling sip/cpp/sip_corewxTimeSpan.cpp [135/856] Compiling sip/cpp/sip_corewxTextUrlEvent.cpp [136/856] Compiling sip/cpp/sip_corewxIndividualLayoutConstraint.cpp -[137/856] Compiling sip/cpp/sip_corewxTextEntryDialog.cpp +[137/856] Compiling sip/cpp/sip_corewxInfoBar.cpp [138/856] Compiling sip/cpp/sip_corewxTextEntry.cpp -[139/856] Compiling sip/cpp/sip_corewxInfoBar.cpp -[140/856] Compiling sip/cpp/sip_corewxDragImage.cpp +[139/856] Compiling sip/cpp/sip_corewxImageRGBValue.cpp +[140/856] Compiling sip/cpp/sip_corewxTextEntryDialog.cpp [141/856] Compiling sip/cpp/sip_corewxTextDropTarget.cpp [142/856] Compiling sip/cpp/sip_corewxTextDataObject.cpp [143/856] Compiling sip/cpp/sip_corewxImageList.cpp [144/856] Compiling sip/cpp/sip_corewxTextCtrl.cpp -[145/856] Compiling sip/cpp/sip_corewxTextCompleterSimple.cpp -[146/856] Compiling sip/cpp/sip_corewxImageHistogram.cpp +[145/856] Compiling sip/cpp/sip_corewxDragImage.cpp +[146/856] Compiling sip/cpp/sip_corewxTextCompleterSimple.cpp [147/856] Compiling sip/cpp/sip_corewxDisplayChangedEvent.cpp -[148/856] Compiling sip/cpp/sip_corewxImageRGBValue.cpp +[148/856] Compiling sip/cpp/sip_corewxCollapsiblePane.cpp [149/856] Compiling sip/cpp/sip_corewxBitmapToggleButton.cpp [150/856] Compiling sip/cpp/sip_corewxTextCompleter.cpp [151/856] Compiling sip/cpp/sip_corewxTextAttr.cpp -[152/856] Compiling sip/cpp/sip_corewxImageHandler.cpp +[152/856] Compiling sip/cpp/sip_corewxImageHistogram.cpp +[153/856] Compiling sip/cpp/sip_corewxImageHandler.cpp +[154/856] Compiling sip/cpp/sip_corewxTGAHandler.cpp ../../../../sip/cpp/sip_corewxTextCtrl.cpp: In function 'bool _wxTextCtrl_ShowNativeCaret(wxTextCtrl*, bool)': ../../../../sip/cpp/sip_corewxTextCtrl.cpp:61:5: warning: no return statement in function returning non-void [-Wreturn-type] } @@ -7579,13 +7615,11 @@ } ^ -[153/856] Compiling sip/cpp/sip_corewxTIFFHandler.cpp -[154/856] Compiling sip/cpp/sip_corewxTGAHandler.cpp [155/856] Compiling sip/cpp/sip_corewxImageHSVValue.cpp [156/856] Compiling sip/cpp/sip_corewxDisplay.cpp [157/856] Compiling sip/cpp/sip_corewxSystemSettings.cpp -[158/856] Compiling sip/cpp/sip_corewxSystemOptions.cpp -[159/856] Compiling sip/cpp/sip_corewxImageArray.cpp +[158/856] Compiling sip/cpp/sip_corewxTIFFHandler.cpp +[159/856] Compiling sip/cpp/sip_corewxSystemOptions.cpp [160/856] Compiling sip/cpp/sip_corewxSysColourChangedEvent.cpp [161/856] Compiling sip/cpp/sip_corewxStringCArrayHolder.cpp [162/856] Compiling sip/cpp/sip_corewxImage.cpp @@ -7593,21 +7627,26 @@ [164/856] Compiling sip/cpp/sip_corewxCloseEvent.cpp [165/856] Compiling sip/cpp/sip_corewxString.cpp [166/856] Compiling sip/cpp/sip_corewxStreamBase.cpp -[167/856] Compiling sip/cpp/sip_corewxIdleEvent.cpp +[167/856] Compiling sip/cpp/sip_corewxImageArray.cpp [168/856] Compiling sip/cpp/sip_corewxStopWatch.cpp [169/856] Compiling sip/cpp/sip_corewxStockPreferencesPage.cpp [170/856] Compiling sip/cpp/sip_corewxIdManager.cpp [171/856] Compiling sip/cpp/sip_corewxDirFilterListCtrl.cpp [172/856] Compiling sip/cpp/sip_corewxStockGDI.cpp -[173/856] Compiling sip/cpp/sip_corewxStdDialogButtonSizer.cpp -[174/856] Compiling sip/cpp/sip_corewxIconizeEvent.cpp +[173/856] Compiling sip/cpp/sip_corewxIdleEvent.cpp +[174/856] Compiling sip/cpp/sip_corewxStdDialogButtonSizer.cpp [175/856] Compiling sip/cpp/sip_corewxStatusBarPane.cpp [176/856] Compiling sip/cpp/sip_corewxStatusBar.cpp [177/856] Compiling sip/cpp/sip_corewxIconLocation.cpp [178/856] Compiling sip/cpp/sip_corewxDirDialog.cpp [179/856] Compiling sip/cpp/sip_corewxClipboardTextEvent.cpp [180/856] Compiling sip/cpp/sip_corewxBitmapDataObject.cpp -[181/856] Compiling sip/cpp/sip_corewxAnyButton.cpp +[181/856] Compiling sip/cpp/sip_corewxIconizeEvent.cpp +[182/856] Compiling sip/cpp/sip_corewxAnyButton.cpp +[183/856] Compiling sip/cpp/sip_corecmodule.cpp +[184/856] Compiling sip/cpp/sip_corewxStaticText.cpp +[185/856] Compiling sip/cpp/sip_corewxStaticLine.cpp +[186/856] Compiling sip/cpp/sip_corewxIconBundle.cpp ../../../../sip/cpp/sip_corewxIconizeEvent.cpp: In function 'PyObject* meth_wxIconizeEvent_Iconized(PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxIconizeEvent.cpp:148:39: warning: 'bool wxIconizeEvent::Iconized() const' is deprecated [-Wdeprecated-declarations] sipRes = sipCpp->Iconized(); @@ -7623,26 +7662,21 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ -[182/856] Compiling sip/cpp/sip_corewxAccessible.cpp -[183/856] Compiling sip/cpp/sip_corecmodule.cpp -[184/856] Compiling sip/cpp/sip_corewxStaticText.cpp -[185/856] Compiling sip/cpp/sip_corewxStaticLine.cpp -[186/856] Compiling sip/cpp/sip_corewxIconBundle.cpp -[187/856] Compiling sip/cpp/sip_corewxStaticBoxSizer.cpp +[187/856] Compiling sip/cpp/sip_corewxAccessible.cpp [188/856] Compiling sip/cpp/sip_corewxStaticBox.cpp -[189/856] Compiling sip/cpp/sip_corewxIcon.cpp +[189/856] Compiling sip/cpp/sip_corewxStaticBoxSizer.cpp [190/856] Compiling sip/cpp/sip_corewxDialogLayoutAdapter.cpp [191/856] Compiling sip/cpp/sip_corewxStaticBitmap.cpp [192/856] Compiling sip/cpp/sip_corewxStandardPaths.cpp [193/856] Compiling sip/cpp/sip_corewxIFFHandler.cpp -[194/856] Compiling sip/cpp/sip_corewxCollapsiblePane.cpp -[195/856] Compiling sip/cpp/sip_corewxSplitterRenderParams.cpp +[194/856] Compiling sip/cpp/sip_corewxSplitterWindow.cpp +[195/856] Compiling sip/cpp/sip_corewxIcon.cpp [196/856] Compiling sip/cpp/sip_corewxHelpProvider.cpp [197/856] Compiling sip/cpp/sip_corewxDialog.cpp [198/856] Compiling sip/cpp/sip_corewxClipboard.cpp [199/856] Compiling sip/cpp/sip_corewxSplitterEvent.cpp -[200/856] Compiling sip/cpp/sip_corewxSpinEvent.cpp -[201/856] Compiling sip/cpp/sip_corewxHelpEvent.cpp +[200/856] Compiling sip/cpp/sip_corewxSplitterRenderParams.cpp +[201/856] Compiling sip/cpp/sip_corewxSpinEvent.cpp [202/856] Compiling sip/cpp/sip_corewxSpinDoubleEvent.cpp ../../../../sip/cpp/sip_corecmodule.cpp: In function 'PyObject* func_Usleep(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_corecmodule.cpp:10476:34: warning: 'void wxUsleep(long unsigned int)' is deprecated [-Wdeprecated-declarations] @@ -7673,21 +7707,6 @@ ^ [203/856] Compiling sip/cpp/sip_corewxSpinCtrlDouble.cpp -[204/856] Compiling sip/cpp/sip_corewxHelpControllerHelpProvider.cpp -[205/856] Compiling sip/cpp/sip_corewxDelegateRendererNative.cpp -[206/856] Compiling sip/cpp/sip_corewxSpinCtrl.cpp -[207/856] Compiling sip/cpp/sip_corewxSpinButton.cpp -[208/856] Compiling sip/cpp/sip_corewxSplitterWindow.cpp -[209/856] Compiling sip/cpp/sip_corewxSlider.cpp -[210/856] Compiling sip/cpp/sip_corewxSizerItemList_iterator.cpp -[211/856] Compiling sip/cpp/sip_corewxHeaderCtrlSimple.cpp -[212/856] Compiling sip/cpp/sip_corewxDateTimeTm.cpp -[213/856] Compiling sip/cpp/sip_corewxClientDataContainer.cpp -[214/856] Compiling sip/cpp/sip_corewxHelpControllerBase.cpp -[215/856] Compiling sip/cpp/sip_corewxBitmapButton.cpp -[216/856] Compiling sip/cpp/sip_corewxSizerItem.cpp -[217/856] Compiling sip/cpp/sip_corewxHeaderCtrlEvent.cpp -[218/856] Compiling sip/cpp/sip_corewxSizerFlags.cpp ../../../../sip/cpp/sip_corewxSplitterWindow.cpp: In function 'PyObject* meth_wxSplitterWindow_SetSashSize(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxSplitterWindow.cpp:1586:37: warning: 'void wxSplitterWindow::SetSashSize(int)' is deprecated [-Wdeprecated-declarations] sipCpp->SetSashSize(size); @@ -7706,9 +7725,24 @@ wxDEPRECATED_INLINE( void SetSashSize(int WXUNUSED(width)), return; ) ^~~~~~~~~~~~~~~~~~~ +[204/856] Compiling sip/cpp/sip_corewxHelpControllerHelpProvider.cpp +[205/856] Compiling sip/cpp/sip_corewxDelegateRendererNative.cpp +[206/856] Compiling sip/cpp/sip_corewxSpinCtrl.cpp +[207/856] Compiling sip/cpp/sip_corewxSpinButton.cpp +[208/856] Compiling sip/cpp/sip_corewxHelpControllerBase.cpp +[209/856] Compiling sip/cpp/sip_corewxSlider.cpp +[210/856] Compiling sip/cpp/sip_corewxSizerItemList_iterator.cpp +[211/856] Compiling sip/cpp/sip_corewxHeaderCtrlSimple.cpp +[212/856] Compiling sip/cpp/sip_corewxHelpEvent.cpp +[213/856] Compiling sip/cpp/sip_corewxClientDataContainer.cpp +[214/856] Compiling sip/cpp/sip_corewxBitmapButton.cpp +[215/856] Compiling sip/cpp/sip_corewxSizerItemList.cpp +[216/856] Compiling sip/cpp/sip_corewxSizerItem.cpp +[217/856] Compiling sip/cpp/sip_corewxHeaderCtrlEvent.cpp +[218/856] Compiling sip/cpp/sip_corewxSizerFlags.cpp [219/856] Compiling sip/cpp/sip_corewxSizer.cpp -[220/856] Compiling sip/cpp/sip_corewxHeaderCtrl.cpp -[221/856] Compiling sip/cpp/sip_corewxSizerItemList.cpp +[220/856] Compiling sip/cpp/sip_corewxDateTimeTm.cpp +[221/856] Compiling sip/cpp/sip_corewxDateTimeTimeZone.cpp [222/856] Compiling sip/cpp/sip_corewxSizeEvent.cpp [223/856] Compiling sip/cpp/sip_corewxSize.cpp [224/856] Compiling sip/cpp/sip_corewxHeaderColumnSimple.cpp @@ -7731,23 +7765,23 @@ [227/856] Compiling sip/cpp/sip_corewxHeaderColumn.cpp [228/856] Compiling sip/cpp/sip_corewxDateTime.cpp -[229/856] Compiling sip/cpp/sip_corewxClientData.cpp -[230/856] Compiling sip/cpp/sip_corewxSimpleHelpProvider.cpp +[229/856] Compiling sip/cpp/sip_corewxHeaderCtrl.cpp +[230/856] Compiling sip/cpp/sip_corewxClientData.cpp [231/856] Compiling sip/cpp/sip_corewxShowEvent.cpp [232/856] Compiling sip/cpp/sip_corewxHeaderButtonParams.cpp [233/856] Compiling sip/cpp/sip_corewxSettableHeaderColumn.cpp -[234/856] Compiling sip/cpp/sip_corewxSetCursorEvent.cpp +[234/856] Compiling sip/cpp/sip_corewxSimpleHelpProvider.cpp [235/856] Compiling sip/cpp/sip_corewxHVScrolledWindow.cpp [236/856] Compiling sip/cpp/sip_corewxDateSpan.cpp -[237/856] Compiling sip/cpp/sip_corewxDateTimeTimeZone.cpp -[238/856] Compiling sip/cpp/sip_corewxScrolledWindow.cpp +[237/856] Compiling sip/cpp/sip_corewxSetCursorEvent.cpp +[238/856] Compiling sip/cpp/sip_corewxSearchCtrl.cpp [239/856] Compiling sip/cpp/sip_corewxHTMLDataObject.cpp [240/856] Compiling sip/cpp/sip_corewxScrolledCanvas.cpp [241/856] Compiling sip/cpp/sip_corewxScrollWinEvent.cpp -[242/856] Compiling sip/cpp/sip_corewxSearchCtrl.cpp +[242/856] Compiling sip/cpp/sip_corewxHScrolledWindow.cpp [243/856] Compiling sip/cpp/sip_corewxDataObjectSimple.cpp -[244/856] Compiling sip/cpp/sip_corewxClientDC.cpp -[245/856] Compiling sip/cpp/sip_corewxBitmap.cpp +[244/856] Compiling sip/cpp/sip_corewxScrolledWindow.cpp +[245/856] Compiling sip/cpp/sip_corewxClientDC.cpp [246/856] Compiling sip/cpp/sip_corewxAlphaPixelData_Accessor.cpp [247/856] Compiling sip/cpp/sip_corewxScrollEvent.cpp [248/856] Compiling sip/cpp/sip_corewxScrollBar.cpp @@ -7758,9 +7792,8 @@ [253/856] Compiling sip/cpp/sip_corewxDataObjectComposite.cpp [254/856] Compiling sip/cpp/sip_corewxRichMessageDialog.cpp [255/856] Compiling sip/cpp/sip_corewxRendererVersion.cpp -[256/856] Compiling sip/cpp/sip_corewxGraphicsRenderer.cpp +[256/856] Compiling sip/cpp/sip_corewxBitmap.cpp [257/856] Compiling sip/cpp/sip_corewxRendererNative.cpp -[258/856] Compiling sip/cpp/sip_corewxRegionIterator.cpp ../../../../sip/cpp/sip_corewxSVGFileDC.cpp: In function 'PyObject* meth_wxSVGFileDC_SetClippingRegion(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxSVGFileDC.cpp:582:46: warning: 'void wxDC::SetClippingRegion(const wxRegion&)' is deprecated [-Wdeprecated-declarations] sipCpp->SetClippingRegion(*region); @@ -7779,7 +7812,8 @@ wxDEPRECATED_INLINE(void SetClippingRegion(const wxRegion& region), ^~~~~~~~~~~~~~~~~~~ -[259/856] Compiling sip/cpp/sip_corewxHScrolledWindow.cpp +[258/856] Compiling sip/cpp/sip_corewxRegionIterator.cpp +[259/856] Compiling sip/cpp/sip_corewxGraphicsPen.cpp [260/856] Compiling sip/cpp/sip_corewxDataObject.cpp [261/856] Compiling sip/cpp/sip_corewxClassInfo.cpp [262/856] Compiling sip/cpp/sip_corewxRegion.cpp @@ -7790,7 +7824,7 @@ [267/856] Compiling sip/cpp/sip_corewxGraphicsObject.cpp [268/856] Compiling sip/cpp/sip_corewxDataFormat.cpp [269/856] Compiling sip/cpp/sip_corewxRearrangeList.cpp -[270/856] Compiling sip/cpp/sip_corewxRearrangeDialog.cpp +[270/856] Compiling sip/cpp/sip_corewxGraphicsRenderer.cpp [271/856] Compiling sip/cpp/sip_corewxGraphicsMatrix.cpp [272/856] Compiling sip/cpp/sip_corewxRearrangeCtrl.cpp [273/856] Compiling sip/cpp/sip_corewxRealPoint.cpp @@ -7799,43 +7833,44 @@ [276/856] Compiling sip/cpp/sip_corewxChoicebook.cpp [277/856] Compiling sip/cpp/sip_corewxAutoBufferedPaintDC.cpp [278/856] Compiling sip/cpp/sip_corewxRadioButton.cpp -[279/856] Compiling sip/cpp/sip_corewxGraphicsPen.cpp +[279/856] Compiling sip/cpp/sip_corewxRadioBox.cpp [280/856] Compiling sip/cpp/sip_corewxGraphicsGradientStop.cpp [281/856] Compiling sip/cpp/sip_corewxQueryNewPaletteEvent.cpp [282/856] Compiling sip/cpp/sip_corewxPyUserData.cpp -[283/856] Compiling sip/cpp/sip_corewxGraphicsFont.cpp -[284/856] Compiling sip/cpp/sip_corewxDCTextColourChanger.cpp -[285/856] Compiling sip/cpp/sip_corewxRadioBox.cpp +[283/856] Compiling sip/cpp/sip_corewxRearrangeDialog.cpp +[284/856] Compiling sip/cpp/sip_corewxGraphicsFont.cpp +[285/856] Compiling sip/cpp/sip_corewxPySingleChoiceDialog.cpp [286/856] Compiling sip/cpp/sip_corewxPyEvent.cpp -[287/856] Compiling sip/cpp/sip_corewxPySingleChoiceDialog.cpp -[288/856] Compiling sip/cpp/sip_corewxPyCommandEvent.cpp +[287/856] Compiling sip/cpp/sip_corewxGraphicsContext.cpp +[288/856] Compiling sip/cpp/sip_corewxDCTextColourChanger.cpp [289/856] Compiling sip/cpp/sip_corewxPyBuffer.cpp -[290/856] Compiling sip/cpp/sip_corewxGraphicsContext.cpp +[290/856] Compiling sip/cpp/sip_corewxGraphicsBrush.cpp [291/856] Compiling sip/cpp/sip_corewxDCPenChanger.cpp -[292/856] Compiling sip/cpp/sip_corewxGraphicsBrush.cpp -[293/856] Compiling sip/cpp/sip_corewxPyApp.cpp -[294/856] Compiling sip/cpp/sip_corewxChoice.cpp +[292/856] Compiling sip/cpp/sip_corewxChoice.cpp +[293/856] Compiling sip/cpp/sip_corewxPyCommandEvent.cpp +[294/856] Compiling sip/cpp/sip_corewxPyApp.cpp [295/856] Compiling sip/cpp/sip_corewxGraphicsBitmap.cpp [296/856] Compiling sip/cpp/sip_corewxPropagateOnce.cpp [297/856] Compiling sip/cpp/sip_corewxProgressDialog.cpp [298/856] Compiling sip/cpp/sip_corewxGenericProgressDialog.cpp [299/856] Compiling sip/cpp/sip_corewxDCOverlay.cpp [300/856] Compiling sip/cpp/sip_corewxProcessEvent.cpp -[301/856] Compiling sip/cpp/sip_corewxProcess.cpp +[301/856] Compiling sip/cpp/sip_corewxPropagationDisabler.cpp [302/856] Compiling sip/cpp/sip_corewxGenericMessageDialog.cpp -[303/856] Compiling sip/cpp/sip_corewxPropagationDisabler.cpp +[303/856] Compiling sip/cpp/sip_corewxProcess.cpp [304/856] Compiling sip/cpp/sip_corewxPrinterDC.cpp [305/856] Compiling sip/cpp/sip_corewxGenericDragImage.cpp [306/856] Compiling sip/cpp/sip_corewxDCFontChanger.cpp [307/856] Compiling sip/cpp/sip_corewxChildFocusEvent.cpp [308/856] Compiling sip/cpp/sip_corewxArtProvider.cpp -[309/856] Compiling sip/cpp/sip_corewxPrintout.cpp +[309/856] Compiling sip/cpp/sip_corewxAlphaPixelData.cpp [310/856] Compiling sip/cpp/sip_corewxAcceleratorTable.cpp [311/856] Compiling sip/cpp/sip_corewxPrinter.cpp [312/856] Compiling sip/cpp/sip_corewxPrintPreview.cpp -[313/856] Compiling sip/cpp/sip_corewxAlphaPixelData.cpp -[314/856] Compiling sip/cpp/sip_corewxPrintDialogData.cpp +[313/856] Compiling sip/cpp/sip_corewxGenericDirCtrl.cpp +[314/856] Compiling sip/cpp/sip_corewxPrintout.cpp [315/856] Compiling sip/cpp/sip_corewxPrintDialog.cpp +[316/856] Compiling sip/cpp/sip_corewxGauge.cpp ../../../../sip/cpp/sip_corewxArtProvider.cpp: In function 'PyObject* meth_wxArtProvider_Insert(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_corewxArtProvider.cpp:450:31: warning: 'static void wxArtProvider::Insert(wxArtProvider*)' is deprecated [-Wdeprecated-declarations] ::wxArtProvider::Insert(provider); @@ -7877,7 +7912,6 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ -[316/856] Compiling sip/cpp/sip_corewxGauge.cpp [317/856] Compiling sip/cpp/sip_corewxDCClipper.cpp [318/856] Compiling sip/cpp/sip_corewxPrintData.cpp [319/856] Compiling sip/cpp/sip_corewxPrintAbortDialog.cpp @@ -7891,19 +7925,19 @@ [327/856] Compiling sip/cpp/sip_corewxPreferencesPage.cpp [328/856] Compiling sip/cpp/sip_corewxGDIObject.cpp [329/856] Compiling sip/cpp/sip_corewxPreferencesEditor.cpp -[330/856] Compiling sip/cpp/sip_corewxGenericDirCtrl.cpp +[330/856] Compiling sip/cpp/sip_corewxPowerEvent.cpp [331/856] Compiling sip/cpp/sip_corewxGCDC.cpp [332/856] Compiling sip/cpp/sip_corewxDC.cpp [333/856] Compiling sip/cpp/sip_corewxPostScriptDC.cpp [334/856] Compiling sip/cpp/sip_corewxPosition.cpp -[335/856] Compiling sip/cpp/sip_corewxGBSpan.cpp +[335/856] Compiling sip/cpp/sip_corewxPrintDialogData.cpp [336/856] Compiling sip/cpp/sip_corewxPopupWindow.cpp -[337/856] Compiling sip/cpp/sip_corewxPopupTransientWindow.cpp +[337/856] Compiling sip/cpp/sip_corewxGBSpan.cpp [338/856] Compiling sip/cpp/sip_corewxGBSizerItem.cpp [339/856] Compiling sip/cpp/sip_corewxCustomDataObject.cpp [340/856] Compiling sip/cpp/sip_corewxCheckBox.cpp [341/856] Compiling sip/cpp/sip_corewxArrayVideoModes.cpp -[342/856] Compiling sip/cpp/sip_corewxPowerEvent.cpp +[342/856] Compiling sip/cpp/sip_corewxPointList_iterator.cpp [343/856] Compiling sip/cpp/sip_corewxPointList.cpp [344/856] Compiling sip/cpp/sip_corewxGBPosition.cpp [345/856] Compiling sip/cpp/sip_corewxPoint2DDouble.cpp @@ -7918,14 +7952,14 @@ [354/856] Compiling sip/cpp/sip_corewxFontPickerCtrl.cpp [355/856] Compiling sip/cpp/sip_corewxControlWithItems.cpp [356/856] Compiling sip/cpp/sip_corewxCharBuffer.cpp -[357/856] Compiling sip/cpp/sip_corewxPen.cpp -[358/856] Compiling sip/cpp/sip_corewxPasswordEntryDialog.cpp +[357/856] Compiling sip/cpp/sip_corewxPopupTransientWindow.cpp +[358/856] Compiling sip/cpp/sip_corewxPen.cpp [359/856] Compiling sip/cpp/sip_corewxFontMetrics.cpp [360/856] Compiling sip/cpp/sip_corewxPanel.cpp [361/856] Compiling sip/cpp/sip_corewxPaletteChangedEvent.cpp [362/856] Compiling sip/cpp/sip_corewxFontMapper.cpp [363/856] Compiling sip/cpp/sip_corewxControl.cpp -[364/856] Compiling sip/cpp/sip_corewxPalette.cpp +[364/856] Compiling sip/cpp/sip_corewxPasswordEntryDialog.cpp [365/856] Compiling sip/cpp/sip_corewxPaintEvent.cpp [366/856] Compiling sip/cpp/sip_corewxFontList.cpp [367/856] Compiling sip/cpp/sip_corewxPaintDC.cpp @@ -7938,7 +7972,7 @@ [374/856] Compiling sip/cpp/sip_corewxPageSetupDialog.cpp [375/856] Compiling sip/cpp/sip_corewxPNMHandler.cpp [376/856] Compiling sip/cpp/sip_corewxFontEnumerator.cpp -[377/856] Compiling sip/cpp/sip_corewxPNGHandler.cpp +[377/856] Compiling sip/cpp/sip_corewxPalette.cpp [378/856] Compiling sip/cpp/sip_corewxPCXHandler.cpp [379/856] Compiling sip/cpp/sip_corewxFontDialog.cpp [380/856] Compiling sip/cpp/sip_corewxContextHelpButton.cpp @@ -7946,9 +7980,9 @@ [382/856] Compiling sip/cpp/sip_corewxOutputStream.cpp [383/856] Compiling sip/cpp/sip_corewxFontData.cpp [384/856] Compiling sip/cpp/sip_corewxObject.cpp -[385/856] Compiling sip/cpp/sip_corewxNumberEntryDialog.cpp -[386/856] Compiling sip/cpp/sip_corewxFont.cpp -[387/856] Compiling sip/cpp/sip_corewxContextHelp.cpp +[385/856] Compiling sip/cpp/sip_corewxPNGHandler.cpp +[386/856] Compiling sip/cpp/sip_corewxNumberEntryDialog.cpp +[387/856] Compiling sip/cpp/sip_corewxFont.cpp [388/856] Compiling sip/cpp/sip_corewxButton.cpp [389/856] Compiling sip/cpp/sip_corewxNotifyEvent.cpp [390/856] Compiling sip/cpp/sip_corewxNotebook.cpp @@ -7962,11 +7996,11 @@ [398/856] Compiling sip/cpp/sip_corewxFindReplaceDialog.cpp [399/856] Compiling sip/cpp/sip_corewxNativeFontInfo.cpp [400/856] Compiling sip/cpp/sip_corewxMultiChoiceDialog.cpp -[401/856] Compiling sip/cpp/sip_corewxFindReplaceData.cpp +[401/856] Compiling sip/cpp/sip_corewxContextHelp.cpp [402/856] Compiling sip/cpp/sip_corewxConfigBase.cpp [403/856] Compiling sip/cpp/sip_corewxBusyInfo.cpp [404/856] Compiling sip/cpp/sip_corewxArrayInt.cpp -[405/856] Compiling sip/cpp/sip_corewxPointList_iterator.cpp +[405/856] Compiling sip/cpp/sip_corewxMsgCatalog.cpp [406/856] Compiling sip/cpp/sip_corewxMoveEvent.cpp [407/856] Compiling sip/cpp/sip_corewxFindDialogEvent.cpp [408/856] Compiling sip/cpp/sip_corewxMouseState.cpp @@ -7977,7 +8011,7 @@ [413/856] Compiling sip/cpp/sip_corewxMouseCaptureLostEvent.cpp [414/856] Compiling sip/cpp/sip_corewxFileTypeMessageParameters.cpp [415/856] Compiling sip/cpp/sip_corewxMouseCaptureChangedEvent.cpp -[416/856] Compiling sip/cpp/sip_corewxMsgCatalog.cpp +[416/856] Compiling sip/cpp/sip_corewxModalDialogHook.cpp [417/856] Compiling sip/cpp/sip_corewxFileTypeInfo.cpp [418/856] Compiling sip/cpp/sip_corewxCommandProcessor.cpp [419/856] Compiling sip/cpp/sip_corewxBusyCursor.cpp @@ -7987,12 +8021,12 @@ [423/856] Compiling sip/cpp/sip_corewxMimeTypesManager.cpp [424/856] Compiling sip/cpp/sip_corewxMetafileDC.cpp [425/856] Compiling sip/cpp/sip_corewxFileTranslationsLoader.cpp -[426/856] Compiling sip/cpp/sip_corewxModalDialogHook.cpp +[426/856] Compiling sip/cpp/sip_corewxCommandList_iterator.cpp [427/856] Compiling sip/cpp/sip_corewxMetafile.cpp [428/856] Compiling sip/cpp/sip_corewxMessageDialogButtonLabel.cpp -[429/856] Compiling sip/cpp/sip_corewxCommandList_iterator.cpp +[429/856] Compiling sip/cpp/sip_corewxFileSystemWatcherEvent.cpp [430/856] Compiling sip/cpp/sip_corewxMessageDialog.cpp -[431/856] Compiling sip/cpp/sip_corewxFileSystemWatcherEvent.cpp +[431/856] Compiling sip/cpp/sip_corewxFindReplaceData.cpp [432/856] Compiling sip/cpp/sip_corewxBufferedDC.cpp [433/856] Compiling sip/cpp/sip_corewxBrushList.cpp [434/856] Compiling sip/cpp/sip_corewxComboCtrlFeatures.cpp @@ -8155,9 +8189,9 @@ [477/856] Compiling sip/cpp/sip_advwxSashWindow.cpp [478/856] Compiling sip/cpp/sip_advwxPseudoDC.cpp [479/856] Compiling sip/cpp/sip_advwxSound.cpp -[480/856] Compiling sip/cpp/sip_advwxRichToolTip.cpp +[480/856] Compiling sip/cpp/sip_advwxSashLayoutWindow.cpp [481/856] Compiling sip/cpp/sip_advwxQueryLayoutInfoEvent.cpp -[482/856] Compiling sip/cpp/sip_advwxSashLayoutWindow.cpp +[482/856] Compiling sip/cpp/sip_advwxRichToolTip.cpp [483/856] Compiling sip/cpp/sip_advwxNotificationMessage.cpp [484/856] Compiling sip/cpp/sip_advwxJoystick.cpp [485/856] Compiling sip/cpp/sip_advwxEditableListBox.cpp @@ -8175,23 +8209,14 @@ [497/856] Compiling sip/cpp/sip_advwxCalendarDateAttr.cpp [498/856] Compiling sip/cpp/sip_dataviewwxDataViewItem.cpp [499/856] Compiling sip/cpp/sip_dataviewwxDataViewIndexListModel.cpp -[500/856] Compiling sip/cpp/sip_dataviewwxDataViewTreeStore.cpp +[500/856] Compiling sip/cpp/sip_dataviewwxDataViewSpinRenderer.cpp [501/856] Compiling sip/cpp/sip_dataviewwxDataViewCtrl.cpp -[502/856] Compiling sip/cpp/sip_dataviewwxDataViewModel.cpp -[503/856] Compiling sip/cpp/sip_dataviewwxDataViewDateRenderer.cpp -[504/856] Compiling sip/cpp/sip_dataviewwxDataViewListStore.cpp +[502/856] Compiling sip/cpp/sip_dataviewwxDataViewListStore.cpp +[503/856] Compiling sip/cpp/sip_dataviewwxDataViewModelNotifier.cpp +[504/856] Compiling sip/cpp/sip_dataviewwxDataViewDateRenderer.cpp [505/856] Compiling sip/cpp/sip_dataviewwxDataViewItemArray.cpp [506/856] Compiling sip/cpp/sip_dataviewwxDataViewIconTextRenderer.cpp [507/856] Compiling sip/cpp/sip_dataviewwxDataViewEvent.cpp -[508/856] Linking build/waf/3.7/gtk3/_adv.cpython-37m-aarch64-linux-gnu.so -[509/856] Compiling sip/cpp/sip_dataviewwxDataViewSpinRenderer.cpp -[510/856] Compiling sip/cpp/sip_dataviewwxDataViewVirtualListModel.cpp -[511/856] Compiling sip/cpp/sip_dataviewwxDataViewCustomRenderer.cpp -[512/856] Compiling sip/cpp/sip_dataviewwxDataViewTextRenderer.cpp -[513/856] Compiling sip/cpp/sip_dataviewwxTreeListCtrl.cpp -[514/856] Compiling sip/cpp/sip_dataviewwxDataViewToggleRenderer.cpp -[515/856] Compiling sip/cpp/sip_dataviewwxDataViewListModel.cpp -[516/856] Compiling sip/cpp/sip_dataviewwxDataViewListCtrl.cpp ../../../../sip/cpp/sip_dataviewwxDataViewSpinRenderer.cpp: In member function 'virtual bool sipwxDataViewSpinRenderer::LeftClick(wxPoint, wxRect, wxDataViewModel*, const wxDataViewItem&, uint)': ../../../../sip/cpp/sip_dataviewwxDataViewSpinRenderer.cpp:311:43: warning: 'virtual bool wxDataViewCustomRendererBase::LeftClick(wxPoint, wxRect, wxDataViewModel*, const wxDataViewItem&, unsigned int)' is deprecated [-Wdeprecated-declarations] return ::wxDataViewSpinRenderer::LeftClick(cursor,cell,model,item,col); @@ -8259,9 +8284,17 @@ wxDEPRECATED_BUT_USED_INTERNALLY_INLINE( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -[517/856] Compiling sip/cpp/sip_dataviewwxDataViewIconText.cpp +[508/856] Compiling sip/cpp/sip_dataviewwxDataViewIconText.cpp +[509/856] Linking build/waf/3.7/gtk3/_adv.cpython-37m-aarch64-linux-gnu.so +[510/856] Compiling sip/cpp/sip_dataviewwxDataViewTextRenderer.cpp +[511/856] Compiling sip/cpp/sip_dataviewwxDataViewCustomRenderer.cpp +[512/856] Compiling sip/cpp/sip_dataviewwxDataViewVirtualListModel.cpp +[513/856] Compiling sip/cpp/sip_dataviewwxTreeListCtrl.cpp +[514/856] Compiling sip/cpp/sip_dataviewwxDataViewToggleRenderer.cpp +[515/856] Compiling sip/cpp/sip_dataviewwxDataViewListModel.cpp +[516/856] Compiling sip/cpp/sip_dataviewwxDataViewListCtrl.cpp +[517/856] Compiling sip/cpp/sip_dataviewwxDataViewTreeStore.cpp [518/856] Compiling sip/cpp/sip_dataviewwxDVCVariant.cpp -[519/856] Compiling sip/cpp/sip_dataviewwxTreeListEvent.cpp ../../../../sip/cpp/sip_dataviewwxDataViewCustomRenderer.cpp: In member function 'virtual bool sipwxDataViewCustomRenderer::Activate(wxRect, wxDataViewModel*, const wxDataViewItem&, uint)': ../../../../sip/cpp/sip_dataviewwxDataViewCustomRenderer.cpp:125:45: warning: 'virtual bool wxDataViewCustomRendererBase::Activate(wxRect, wxDataViewModel*, const wxDataViewItem&, unsigned int)' is deprecated [-Wdeprecated-declarations] return ::wxDataViewCustomRenderer::Activate(cell,model,item,col); @@ -8395,46 +8428,47 @@ wxDEPRECATED_BUT_USED_INTERNALLY_INLINE( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -[520/856] Compiling sip/cpp/sip_dataviewwxDataViewModelNotifier.cpp -[521/856] Compiling sip/cpp/sip_dataviewwxDataViewColumn.cpp +[519/856] Compiling sip/cpp/sip_dataviewwxTreeListItem.cpp +[520/856] Compiling sip/cpp/sip_dataviewwxDataViewModel.cpp +[521/856] Compiling sip/cpp/sip_dataviewwxDataViewBitmapRenderer.cpp [522/856] Compiling sip/cpp/sip_dataviewcmodule.cpp -[523/856] Compiling sip/cpp/sip_dataviewwxTreeListItem.cpp +[523/856] Compiling sip/cpp/sip_dataviewwxVariantVector.cpp [524/856] Compiling sip/cpp/sip_dataviewwxDataViewItemAttr.cpp -[525/856] Compiling sip/cpp/sip_dataviewwxDataViewBitmapRenderer.cpp -[526/856] Compiling sip/cpp/sip_dataviewwxTreeListItemComparator.cpp -[527/856] Compiling sip/cpp/sip_dataviewwxDataViewTreeCtrl.cpp -[528/856] Compiling sip/cpp/sip_dataviewwxDataViewChoiceRenderer.cpp -[529/856] Compiling sip/cpp/sip_dataviewwxDataViewRenderer.cpp -[530/856] Compiling sip/cpp/sip_dataviewwxDataViewProgressRenderer.cpp -[531/856] Compiling sip/cpp/sip_dataviewwxVariantVector.cpp +[525/856] Compiling sip/cpp/sip_dataviewwxDataViewColumn.cpp +[526/856] Compiling sip/cpp/sip_dataviewwxDataViewChoiceRenderer.cpp +[527/856] Compiling sip/cpp/sip_dataviewwxDataViewProgressRenderer.cpp +[528/856] Compiling sip/cpp/sip_dataviewwxDataViewRenderer.cpp +[529/856] Compiling sip/cpp/sip_dataviewwxTreeListEvent.cpp +[530/856] Compiling sip/cpp/sip_dataviewwxDataViewTreeCtrl.cpp +[531/856] Compiling sip/cpp/sip_dataviewwxTreeListItemComparator.cpp [532/856] Compiling sip/cpp/sip_gridwxGridCellAutoWrapStringRenderer.cpp [533/856] Compiling sip/cpp/sip_gridwxGridCellAttrProvider.cpp [534/856] Compiling sip/cpp/sip_gridwxGridCellEnumRenderer.cpp [535/856] Compiling sip/cpp/sip_gridwxGridTableMessage.cpp -[536/856] Compiling sip/cpp/sip_gridwxGridCellDateTimeRenderer.cpp +[536/856] Compiling sip/cpp/sip_gridwxGridCellCoords.cpp [537/856] Compiling sip/cpp/sip_gridwxGridCellChoiceEditor.cpp [538/856] Compiling sip/cpp/sip_gridwxGridCellAttr.cpp [539/856] Compiling sip/cpp/sip_gridwxGridUpdateLocker.cpp [540/856] Compiling sip/cpp/sip_gridwxGridCellBoolEditor.cpp -[541/856] Linking build/waf/3.7/gtk3/_dataview.cpython-37m-aarch64-linux-gnu.so -[542/856] Compiling sip/cpp/sip_gridcmodule.cpp -[543/856] Compiling sip/cpp/sip_gridwxGridCellCoordsArray.cpp -[544/856] Compiling sip/cpp/sip_gridwxGridCellBoolRenderer.cpp -[545/856] Compiling sip/cpp/sip_gridwxGridCellFloatRenderer.cpp -[546/856] Compiling sip/cpp/sip_gridwxGridHeaderLabelsRenderer.cpp -[547/856] Compiling sip/cpp/sip_gridwxGridRangeSelectEvent.cpp -[548/856] Compiling sip/cpp/sip_gridwxGridSizeEvent.cpp +[541/856] Compiling sip/cpp/sip_gridwxGrid.cpp +[542/856] Linking build/waf/3.7/gtk3/_dataview.cpython-37m-aarch64-linux-gnu.so +[543/856] Compiling sip/cpp/sip_gridwxGridCellBoolRenderer.cpp +[544/856] Compiling sip/cpp/sip_gridwxGridCellCoordsArray.cpp +[545/856] Compiling sip/cpp/sip_gridwxGridSizeEvent.cpp +[546/856] Compiling sip/cpp/sip_gridwxGridRangeSelectEvent.cpp +[547/856] Compiling sip/cpp/sip_gridwxGridCellFloatRenderer.cpp +[548/856] Compiling sip/cpp/sip_gridwxGridHeaderLabelsRenderer.cpp [549/856] Compiling sip/cpp/sip_gridwxGridCellStringRenderer.cpp -[550/856] Compiling sip/cpp/sip_gridwxGridCellTextEditor.cpp -[551/856] Compiling sip/cpp/sip_gridwxGridCornerHeaderRendererDefault.cpp -[552/856] Compiling sip/cpp/sip_gridwxGridCellNumberEditor.cpp -[553/856] Compiling sip/cpp/sip_gridwxGridCellEnumEditor.cpp -[554/856] Compiling sip/cpp/sip_gridwxGridCellAutoWrapStringEditor.cpp -[555/856] Compiling sip/cpp/sip_gridwxGridColumnHeaderRenderer.cpp -[556/856] Compiling sip/cpp/sip_gridwxGrid.cpp +[550/856] Compiling sip/cpp/sip_gridwxGridCellEnumEditor.cpp +[551/856] Compiling sip/cpp/sip_gridwxGridCellNumberEditor.cpp +[552/856] Compiling sip/cpp/sip_gridwxGridCornerHeaderRendererDefault.cpp +[553/856] Compiling sip/cpp/sip_gridwxGridCellTextEditor.cpp +[554/856] Compiling sip/cpp/sip_gridwxGridColumnHeaderRenderer.cpp +[555/856] Compiling sip/cpp/sip_gridwxGridCellAutoWrapStringEditor.cpp +[556/856] Compiling sip/cpp/sip_gridcmodule.cpp [557/856] Compiling sip/cpp/sip_gridwxGridSizesInfo.cpp [558/856] Compiling sip/cpp/sip_gridwxGridRowHeaderRenderer.cpp -[559/856] Compiling sip/cpp/sip_gridwxGridCellCoords.cpp +[559/856] Compiling sip/cpp/sip_gridwxGridCellDateTimeRenderer.cpp [560/856] Compiling sip/cpp/sip_gridwxGridStringTable.cpp [561/856] Compiling sip/cpp/sip_gridwxGridRowHeaderRendererDefault.cpp [562/856] Compiling sip/cpp/sip_gridwxGridCellRenderer.cpp @@ -8442,14 +8476,14 @@ [564/856] Compiling sip/cpp/sip_gridwxGridTableBase.cpp [565/856] Compiling sip/cpp/sip_gridwxGridColumnHeaderRendererDefault.cpp [566/856] Compiling sip/cpp/sip_gridwxGridCellFloatEditor.cpp -[567/856] Compiling sip/cpp/sip_gridwxGridEditorCreatedEvent.cpp -[568/856] Compiling sip/cpp/sip_gridwxGridCornerHeaderRenderer.cpp +[567/856] Compiling sip/cpp/sip_gridwxGridCornerHeaderRenderer.cpp +[568/856] Compiling sip/cpp/sip_gridwxGridEditorCreatedEvent.cpp [569/856] Compiling sip/cpp/sip_gridwxGridCellEditor.cpp [570/856] Compiling sip/cpp/sip_gridwxGridCellNumberRenderer.cpp [571/856] Compiling sip/cpp/sip_stccmodule.cpp [572/856] Compiling sip/cpp/sip_stcwxStyledTextEvent.cpp [573/856] Compiling sip/cpp/sip_stcwxStyledTextCtrl.cpp -[574/856] Compiling sip/cpp/sip_htmlwxHtmlTagHandler.cpp +[574/856] Compiling sip/cpp/sip_htmlwxHtmlHelpData.cpp [575/856] Compiling sip/cpp/sip_htmlwxHtmlModalHelp.cpp [576/856] Compiling sip/cpp/sip_htmlwxHtmlHelpWindow.cpp [577/856] Compiling sip/cpp/sip_htmlwxHtmlHelpDialog.cpp @@ -8458,16 +8492,20 @@ [580/856] Linking build/waf/3.7/gtk3/_grid.cpython-37m-aarch64-linux-gnu.so [581/856] Compiling sip/cpp/sip_htmlwxHtmlContainerCell.cpp [582/856] Compiling sip/cpp/sip_htmlwxHtmlBookRecord.cpp -[583/856] Compiling sip/cpp/sip_htmlwxHtmlWordWithTabsCell.cpp -[584/856] Compiling sip/cpp/sip_htmlwxSimpleHtmlListBox.cpp +[583/856] Compiling sip/cpp/sip_htmlwxSimpleHtmlListBox.cpp +[584/856] Compiling sip/cpp/sip_htmlwxHtmlWordWithTabsCell.cpp [585/856] Compiling sip/cpp/sip_htmlwxHtmlWidgetCell.cpp -[586/856] Compiling sip/cpp/sip_htmlwxHtmlListBox.cpp -[587/856] Compiling sip/cpp/sip_htmlwxHtmlHelpDataItem.cpp -[588/856] Compiling sip/cpp/sip_htmlwxHtmlTag.cpp -[589/856] Compiling sip/cpp/sip_htmlwxHtmlSelection.cpp -[590/856] Compiling sip/cpp/sip_htmlwxHtmlHelpData.cpp -[591/856] Compiling sip/cpp/sip_htmlwxHtmlFontCell.cpp -[592/856] Compiling sip/cpp/sip_htmlwxHtmlHelpController.cpp +[586/856] Compiling sip/cpp/sip_htmlwxHtmlRenderingState.cpp +[587/856] Compiling sip/cpp/sip_htmlwxHtmlCell.cpp +[588/856] Compiling sip/cpp/sip_htmlwxHtmlSelection.cpp +[589/856] Compiling sip/cpp/sip_htmlwxHtmlTagHandler.cpp +[590/856] Compiling sip/cpp/sip_htmlwxHtmlTag.cpp +[591/856] Compiling sip/cpp/sip_htmlwxHtmlWinTagHandler.cpp +[592/856] Compiling sip/cpp/sip_htmlwxHtmlPrintout.cpp +[593/856] Compiling sip/cpp/sip_htmlwxHtmlListBox.cpp +[594/856] Compiling sip/cpp/sip_htmlwxHtmlFontCell.cpp +[595/856] Compiling sip/cpp/sip_htmlwxHtmlHelpFrame.cpp +[596/856] Compiling sip/cpp/sip_htmlwxHtmlHelpController.cpp ../../../../sip/cpp/sip_htmlwxHtmlTag.cpp: In function 'PyObject* meth_wxHtmlTag_GetBeginPos(PyObject*, PyObject*)': ../../../../sip/cpp/sip_htmlwxHtmlTag.cpp:76:42: warning: 'int wxHtmlTag::GetBeginPos() const' is deprecated [-Wdeprecated-declarations] sipRes = sipCpp->GetBeginPos(); @@ -8508,188 +8546,184 @@ inline int wxHtmlTag::GetEndPos2() const { return int(m_End2 - m_sourceStart); } ^~~~~~~~~ -[593/856] Compiling sip/cpp/sip_htmlwxHtmlWinTagHandler.cpp -[594/856] Compiling sip/cpp/sip_htmlwxHtmlRenderingState.cpp -[595/856] Compiling sip/cpp/sip_htmlwxHtmlPrintout.cpp -[596/856] Compiling sip/cpp/sip_htmlwxHtmlLinkInfo.cpp -[597/856] Compiling sip/cpp/sip_htmlwxHtmlHelpFrame.cpp +[597/856] Compiling sip/cpp/sip_htmlwxHtmlLinkInfo.cpp [598/856] Compiling sip/cpp/sip_htmlwxHtmlDCRenderer.cpp [599/856] Compiling sip/cpp/sip_htmlwxHtmlColourCell.cpp [600/856] Compiling sip/cpp/sip_htmlwxHtmlWordCell.cpp -[601/856] Linking build/waf/3.7/gtk3/_stc.cpython-37m-aarch64-linux-gnu.so -[602/856] Compiling sip/cpp/sip_htmlwxHtmlLinkEvent.cpp -[603/856] Compiling sip/cpp/sip_htmlwxHtmlEasyPrinting.cpp -[604/856] Compiling sip/cpp/sip_htmlwxHtmlBookRecArray.cpp -[605/856] Compiling sip/cpp/sip_htmlwxHtmlCellEvent.cpp +[601/856] Compiling sip/cpp/sip_htmlwxHtmlLinkEvent.cpp +[602/856] Compiling sip/cpp/sip_htmlwxHtmlEasyPrinting.cpp +[603/856] Linking build/waf/3.7/gtk3/_stc.cpython-37m-aarch64-linux-gnu.so +[604/856] Compiling sip/cpp/sip_htmlwxHtmlCellEvent.cpp +[605/856] Compiling sip/cpp/sip_htmlwxHtmlBookRecArray.cpp [606/856] Compiling sip/cpp/sip_htmlwxHtmlWinParser.cpp -[607/856] Compiling sip/cpp/sip_htmlcmodule.cpp +[607/856] Compiling sip/cpp/sip_htmlwxHtmlHelpDataItem.cpp [608/856] Compiling sip/cpp/sip_htmlwxHtmlWindow.cpp [609/856] Compiling sip/cpp/sip_htmlwxHtmlParser.cpp [610/856] Compiling sip/cpp/sip_htmlwxHtmlRenderingStyle.cpp -[611/856] Compiling sip/cpp/sip_htmlwxHtmlCell.cpp +[611/856] Compiling sip/cpp/sip_htmlcmodule.cpp [612/856] Compiling sip/cpp/sip_htmlwxHtmlRenderingInfo.cpp [613/856] Compiling sip/cpp/sip_htmlwxHtmlWindowInterface.cpp [614/856] Compiling sip/cpp/sip_glcanvaswxGLContext.cpp [615/856] Compiling sip/cpp/sip_glcanvaswxGLCanvas.cpp [616/856] Compiling sip/cpp/sip_glcanvascmodule.cpp [617/856] Compiling sip/cpp/sip_html2wxWebView.cpp -[618/856] Compiling sip/cpp/sip_html2wxWebViewArchiveHandler.cpp -[619/856] Compiling sip/cpp/sip_html2wxWebViewEvent.cpp -[620/856] Compiling sip/cpp/sip_html2wxWebViewFactory.cpp -[621/856] Compiling sip/cpp/sip_html2wxWebViewHistoryItem.cpp -[622/856] Compiling sip/cpp/sip_html2wxWebViewFSHandler.cpp -[623/856] Linking build/waf/3.7/gtk3/_html.cpython-37m-aarch64-linux-gnu.so -[624/856] Compiling sip/cpp/sip_html2wxWebViewHandler.cpp -[625/856] Compiling sip/cpp/sip_html2cmodule.cpp -[626/856] Compiling sip/cpp/sip_xmlcmodule.cpp -[627/856] Compiling sip/cpp/sip_xmlwxXmlDocument.cpp -[628/856] Linking build/waf/3.7/gtk3/_glcanvas.cpython-37m-aarch64-linux-gnu.so -[629/856] Compiling sip/cpp/sip_xmlwxXmlNode.cpp -[630/856] Compiling sip/cpp/sip_xmlwxXmlAttribute.cpp +[618/856] Compiling sip/cpp/sip_html2wxWebViewEvent.cpp +[619/856] Compiling sip/cpp/sip_html2wxWebViewFactory.cpp +[620/856] Compiling sip/cpp/sip_html2wxWebViewHistoryItem.cpp +[621/856] Compiling sip/cpp/sip_html2wxWebViewFSHandler.cpp +[622/856] Compiling sip/cpp/sip_html2wxWebViewHandler.cpp +[623/856] Compiling sip/cpp/sip_html2cmodule.cpp +[624/856] Linking build/waf/3.7/gtk3/_html.cpython-37m-aarch64-linux-gnu.so +[625/856] Compiling sip/cpp/sip_html2wxWebViewArchiveHandler.cpp +[626/856] Linking build/waf/3.7/gtk3/_glcanvas.cpython-37m-aarch64-linux-gnu.so +[627/856] Compiling sip/cpp/sip_xmlwxXmlAttribute.cpp +[628/856] Compiling sip/cpp/sip_xmlwxXmlDocument.cpp +[629/856] Compiling sip/cpp/sip_xmlcmodule.cpp +[630/856] Compiling sip/cpp/sip_xmlwxXmlNode.cpp [631/856] Compiling sip/cpp/sip_xrccmodule.cpp -[632/856] Compiling sip/cpp/sip_xrcwxXmlResourceHandler.cpp +[632/856] Compiling sip/cpp/sip_xrcwxAnimation.cpp [633/856] Compiling sip/cpp/sip_xrcwxXmlResource.cpp [634/856] Compiling sip/cpp/sip_xrcwxXmlSubclassFactory.cpp -[635/856] Compiling sip/cpp/sip_xrcwxAnimation.cpp +[635/856] Compiling sip/cpp/sip_xrcwxXmlResourceHandler.cpp [636/856] Linking build/waf/3.7/gtk3/_html2.cpython-37m-aarch64-linux-gnu.so -[637/856] Compiling sip/cpp/sip_richtextwxRichTextCharacterStyleDefinition.cpp -[638/856] Compiling sip/cpp/sip_richtextwxRichTextCommand.cpp -[639/856] Compiling sip/cpp/sip_richtextwxRichTextObjectPtrArray.cpp -[640/856] Compiling sip/cpp/sip_richtextwxRichTextHeaderFooterData.cpp -[641/856] Linking build/waf/3.7/gtk3/_xml.cpython-37m-aarch64-linux-gnu.so -[642/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandlerList_iterator.cpp -[643/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandlerList.cpp -[644/856] Compiling sip/cpp/sip_richtextwxRichTextFieldType.cpp -[645/856] Compiling sip/cpp/sip_richtextwxRichTextCtrl.cpp -[646/856] Compiling sip/cpp/sip_richtextwxRichTextListStyleDefinition.cpp -[647/856] Linking build/waf/3.7/gtk3/_xrc.cpython-37m-aarch64-linux-gnu.so -[648/856] Compiling sip/cpp/sip_richtextwxRichTextFormattingDialogFactory.cpp +[637/856] Compiling sip/cpp/sip_richtextwxRichTextFieldTypeStandard.cpp +[638/856] Compiling sip/cpp/sip_richtextwxRichTextTable.cpp +[639/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList.cpp +[640/856] Compiling sip/cpp/sip_richtextwxRichTextFormattingDialogFactory.cpp +[641/856] Compiling sip/cpp/sip_richtextwxRichTextBuffer.cpp +[642/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandlerList.cpp +[643/856] Linking build/waf/3.7/gtk3/_xml.cpython-37m-aarch64-linux-gnu.so +[644/856] Compiling sip/cpp/sip_richtextwxRichTextCtrl.cpp +[645/856] Compiling sip/cpp/sip_richtextwxRichTextCell.cpp +[646/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandlerList_iterator.cpp +[647/856] Compiling sip/cpp/sip_richtextwxTextBoxAttr.cpp +[648/856] Compiling sip/cpp/sip_richtextwxRichTextObject.cpp [649/856] Compiling sip/cpp/sip_richtextwxRichTextAttrArray.cpp -[650/856] Compiling sip/cpp/sip_richtextwxRichTextBufferDataObject.cpp -[651/856] Compiling sip/cpp/sip_richtextwxRichTextActionList_iterator.cpp -[652/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList_.cpp -[653/856] Compiling sip/cpp/sip_richtextwxTextAttrBorders.cpp -[654/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList_iterator.cpp -[655/856] Compiling sip/cpp/sip_richtextwxRichTextPrinting.cpp -[656/856] Compiling sip/cpp/sip_richtextwxRichTextLineList_iterator.cpp -[657/856] Compiling sip/cpp/sip_richtextwxRichTextXMLHandler.cpp -[658/856] Compiling sip/cpp/sip_richtextwxRichTextSelection.cpp -[659/856] Compiling sip/cpp/sip_richtextwxRichTextStyleDefinition.cpp -[660/856] Compiling sip/cpp/sip_richtextwxRichTextParagraph.cpp -[661/856] Compiling sip/cpp/sip_richtextwxSymbolPickerDialog.cpp -[662/856] Compiling sip/cpp/sip_richtextwxRichTextTable.cpp -[663/856] Compiling sip/cpp/sip_richtextwxRichTextRange.cpp -[664/856] Compiling sip/cpp/sip_richtextwxRichTextPlainTextHandler.cpp +[650/856] Linking build/waf/3.7/gtk3/_xrc.cpython-37m-aarch64-linux-gnu.so +[651/856] Compiling sip/cpp/sip_richtextwxRichTextPrintout.cpp +[652/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList_iterator.cpp +[653/856] Compiling sip/cpp/sip_richtextwxRichTextRange.cpp +[654/856] Compiling sip/cpp/sip_richtextwxRichTextSelection.cpp +[655/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList_.cpp +[656/856] Compiling sip/cpp/sip_richtextwxRichTextPrinting.cpp +[657/856] Compiling sip/cpp/sip_richtextwxRichTextLineList_iterator.cpp +[658/856] Compiling sip/cpp/sip_richtextwxRichTextBufferDataObject.cpp +[659/856] Compiling sip/cpp/sip_richtextwxRichTextStyleComboCtrl.cpp +[660/856] Compiling sip/cpp/sip_richtextwxRichTextImage.cpp +[661/856] Compiling sip/cpp/sip_richtextwxRichTextParagraph.cpp +[662/856] Compiling sip/cpp/sip_richtextwxRichTextPlainTextHandler.cpp +[663/856] Compiling sip/cpp/sip_richtextwxRichTextXMLHandler.cpp +[664/856] Compiling sip/cpp/sip_richtextwxTextAttrBorders.cpp [665/856] Compiling sip/cpp/sip_richtextwxRichTextActionList.cpp [666/856] Compiling sip/cpp/sip_richtextwxRichTextEvent.cpp [667/856] Compiling sip/cpp/sip_richtextwxRichTextFileHandler.cpp -[668/856] Compiling sip/cpp/sip_richtextwxRichTextStyleSheet.cpp -[669/856] Compiling sip/cpp/sip_richtextwxRichTextLineList.cpp -[670/856] Compiling sip/cpp/sip_richtextwxRichTextFloatCollector.cpp -[671/856] Compiling sip/cpp/sip_richtextwxRichTextField.cpp -[672/856] Compiling sip/cpp/sip_richtextwxRichTextStyleOrganiserDialog.cpp -[673/856] Compiling sip/cpp/sip_richtextwxRichTextVariantArray.cpp -[674/856] Compiling sip/cpp/sip_richtextcmodule.cpp -[675/856] Compiling sip/cpp/sip_richtextwxRichTextImageBlock.cpp -[676/856] Compiling sip/cpp/sip_richtextwxTextAttrDimension.cpp -[677/856] Compiling sip/cpp/sip_richtextwxRichTextStyleListBox.cpp -[678/856] Compiling sip/cpp/sip_richtextwxRichTextStdRenderer.cpp -[679/856] Compiling sip/cpp/sip_richtextwxRichTextPlainText.cpp -[680/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList__iterator.cpp -[681/856] Compiling sip/cpp/sip_richtextwxRichTextLine.cpp -[682/856] Compiling sip/cpp/sip_richtextwxRichTextAction.cpp -[683/856] Compiling sip/cpp/sip_richtextwxRichTextObjectAddress.cpp -[684/856] Compiling sip/cpp/sip_richtextwxRichTextHTMLHandler.cpp -[685/856] Compiling sip/cpp/sip_richtextwxRichTextFontTable.cpp -[686/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingHandlerList_iterator.cpp +[668/856] Compiling sip/cpp/sip_richtextwxRichTextLineList.cpp +[669/856] Compiling sip/cpp/sip_richtextwxRichTextFloatCollector.cpp +[670/856] Compiling sip/cpp/sip_richtextwxRichTextField.cpp +[671/856] Compiling sip/cpp/sip_richtextwxRichTextStyleOrganiserDialog.cpp +[672/856] Compiling sip/cpp/sip_richtextwxRichTextVariantArray.cpp +[673/856] Compiling sip/cpp/sip_richtextcmodule.cpp +[674/856] Compiling sip/cpp/sip_richtextwxRichTextImageBlock.cpp +[675/856] Compiling sip/cpp/sip_richtextwxTextAttrDimension.cpp +[676/856] Compiling sip/cpp/sip_richtextwxRichTextStyleListBox.cpp +[677/856] Compiling sip/cpp/sip_richtextwxRichTextStdRenderer.cpp +[678/856] Compiling sip/cpp/sip_richtextwxRichTextPlainText.cpp +[679/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList__iterator.cpp +[680/856] Compiling sip/cpp/sip_richtextwxRichTextLine.cpp +[681/856] Compiling sip/cpp/sip_richtextwxSymbolPickerDialog.cpp +[682/856] Compiling sip/cpp/sip_richtextwxRichTextObjectAddress.cpp +[683/856] Compiling sip/cpp/sip_richtextwxRichTextHTMLHandler.cpp +[684/856] Compiling sip/cpp/sip_richtextwxRichTextFontTable.cpp +[685/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingHandlerList_iterator.cpp +[686/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingContext.cpp [687/856] Compiling sip/cpp/sip_richtextwxRichTextCompositeObject.cpp -[688/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingContext.cpp -[689/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingHandler.cpp -[690/856] Compiling sip/cpp/sip_richtextwxRichTextContextMenuPropertiesInfo.cpp -[691/856] Compiling sip/cpp/sip_richtextwxRichTextBox.cpp -[692/856] Compiling sip/cpp/sip_richtextwxRichTextBuffer.cpp -[693/856] Compiling sip/cpp/sip_richtextwxTextAttrSize.cpp +[688/856] Compiling sip/cpp/sip_richtextwxRichTextActionList_iterator.cpp +[689/856] Compiling sip/cpp/sip_richtextwxRichTextAction.cpp +[690/856] Compiling sip/cpp/sip_richtextwxRichTextFieldType.cpp +[691/856] Compiling sip/cpp/sip_richtextwxRichTextContextMenuPropertiesInfo.cpp +[692/856] Compiling sip/cpp/sip_richtextwxRichTextCharacterStyleDefinition.cpp +[693/856] Compiling sip/cpp/sip_richtextwxTextAttrBorder.cpp [694/856] Compiling sip/cpp/sip_richtextwxTextAttrDimensions.cpp [695/856] Compiling sip/cpp/sip_richtextwxRichTextStyleListCtrl.cpp -[696/856] Compiling sip/cpp/sip_richtextwxRichTextAttr.cpp -[697/856] Compiling sip/cpp/sip_richtextwxRichTextObject.cpp -[698/856] Compiling sip/cpp/sip_richtextwxTextBoxAttr.cpp +[696/856] Compiling sip/cpp/sip_richtextwxRichTextBox.cpp +[697/856] Compiling sip/cpp/sip_richtextwxTextAttrSize.cpp +[698/856] Compiling sip/cpp/sip_richtextwxRichTextObjectPtrArray.cpp [699/856] Compiling sip/cpp/sip_richtextwxTextAttrDimensionConverter.cpp -[700/856] Compiling sip/cpp/sip_richtextwxRichTextCell.cpp -[701/856] Compiling sip/cpp/sip_richtextwxRichTextStyleComboCtrl.cpp -[702/856] Compiling sip/cpp/sip_richtextwxRichTextRenderer.cpp -[703/856] Compiling sip/cpp/sip_richtextwxRichTextObjectList.cpp -[704/856] Compiling sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp -[705/856] Compiling sip/cpp/sip_richtextwxTextAttrBorder.cpp -[706/856] Compiling sip/cpp/sip_richtextwxRichTextPrintout.cpp +[700/856] Compiling sip/cpp/sip_richtextwxRichTextStyleSheet.cpp +[701/856] Compiling sip/cpp/sip_richtextwxRichTextObjectPtrArrayArray.cpp +[702/856] Compiling sip/cpp/sip_richtextwxRichTextStyleDefinition.cpp +[703/856] Compiling sip/cpp/sip_richtextwxRichTextHeaderFooterData.cpp +[704/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingHandlerList.cpp +[705/856] Compiling sip/cpp/sip_richtextwxRichTextAttr.cpp +[706/856] Compiling sip/cpp/sip_richtextwxRichTextRangeArray.cpp [707/856] Compiling sip/cpp/sip_richtextwxRichTextParagraphStyleDefinition.cpp -[708/856] Compiling sip/cpp/sip_richtextwxRichTextProperties.cpp -[709/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingHandlerList.cpp -[710/856] Compiling sip/cpp/sip_richtextwxRichTextObjectPtrArrayArray.cpp -[711/856] Compiling sip/cpp/sip_richtextwxRichTextRangeArray.cpp -[712/856] Compiling sip/cpp/sip_richtextwxRichTextFieldTypeStandard.cpp +[708/856] Compiling sip/cpp/sip_richtextwxRichTextDrawingHandler.cpp +[709/856] Compiling sip/cpp/sip_richtextwxRichTextListStyleDefinition.cpp +[710/856] Compiling sip/cpp/sip_richtextwxRichTextRenderer.cpp +[711/856] Compiling sip/cpp/sip_richtextwxRichTextProperties.cpp +[712/856] Compiling sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp [713/856] Compiling sip/cpp/sip_richtextwxRichTextParagraphLayoutBox.cpp -[714/856] Compiling sip/cpp/sip_richtextwxRichTextImage.cpp -[715/856] Compiling sip/cpp/sip_mediacmodule.cpp -[716/856] Compiling sip/cpp/sip_mediawxMediaEvent.cpp -[717/856] Compiling sip/cpp/sip_mediawxMediaCtrl.cpp -[718/856] Compiling sip/cpp/sip_ribbonwxRibbonGalleryItem.cpp +[714/856] Compiling sip/cpp/sip_richtextwxRichTextCommand.cpp +[715/856] Compiling sip/cpp/sip_mediawxMediaEvent.cpp +[716/856] Compiling sip/cpp/sip_mediawxMediaCtrl.cpp +[717/856] Compiling sip/cpp/sip_mediacmodule.cpp +[718/856] Compiling sip/cpp/sip_ribbonwxRibbonToolBarEvent.cpp [719/856] Compiling sip/cpp/sip_ribbonwxRibbonPageTabInfo.cpp -[720/856] Compiling sip/cpp/sip_ribbonwxRibbonToolBarToolBase.cpp -[721/856] Compiling sip/cpp/sip_ribbonwxRibbonToolBarEvent.cpp -[722/856] Compiling sip/cpp/sip_ribbonwxRibbonButtonBar.cpp +[720/856] Compiling sip/cpp/sip_ribbonwxRibbonButtonBar.cpp +[721/856] Compiling sip/cpp/sip_ribbonwxRibbonToolBarToolBase.cpp +[722/856] Compiling sip/cpp/sip_ribbonwxRibbonGalleryItem.cpp [723/856] Compiling sip/cpp/sip_ribbonwxRibbonToolBar.cpp [724/856] Compiling sip/cpp/sip_ribbonwxRibbonPageTabInfoArray.cpp [725/856] Compiling sip/cpp/sip_ribbonwxRibbonButtonBarButtonBase.cpp -[726/856] Compiling sip/cpp/sip_ribbonwxRibbonPage.cpp -[727/856] Compiling sip/cpp/sip_ribbonwxRibbonControl.cpp -[728/856] Linking build/waf/3.7/gtk3/_media.cpython-37m-aarch64-linux-gnu.so -[729/856] Linking build/waf/3.7/gtk3/_richtext.cpython-37m-aarch64-linux-gnu.so -[730/856] Compiling sip/cpp/sip_ribbonwxRibbonBarEvent.cpp -[731/856] Compiling sip/cpp/sip_ribbonwxRibbonPanel.cpp -[732/856] Compiling sip/cpp/sip_ribbonwxRibbonButtonBarEvent.cpp -[733/856] Compiling sip/cpp/sip_ribbonwxRibbonAUIArtProvider.cpp -[734/856] Compiling sip/cpp/sip_ribbonwxRibbonGalleryEvent.cpp -[735/856] Compiling sip/cpp/sip_ribbonwxRibbonGallery.cpp -[736/856] Compiling sip/cpp/sip_ribbonwxRibbonMSWArtProvider.cpp -[737/856] Compiling sip/cpp/sip_ribbonwxRibbonBar.cpp -[738/856] Compiling sip/cpp/sip_ribbonwxRibbonPanelEvent.cpp -[739/856] Compiling sip/cpp/sip_ribboncmodule.cpp +[726/856] Linking build/waf/3.7/gtk3/_media.cpython-37m-aarch64-linux-gnu.so +[727/856] Compiling sip/cpp/sip_ribbonwxRibbonPage.cpp +[728/856] Compiling sip/cpp/sip_ribbonwxRibbonBar.cpp +[729/856] Compiling sip/cpp/sip_ribbonwxRibbonControl.cpp +[730/856] Linking build/waf/3.7/gtk3/_richtext.cpython-37m-aarch64-linux-gnu.so +[731/856] Compiling sip/cpp/sip_ribbonwxRibbonBarEvent.cpp +[732/856] Compiling sip/cpp/sip_ribbonwxRibbonPanel.cpp +[733/856] Compiling sip/cpp/sip_ribbonwxRibbonPanelEvent.cpp +[734/856] Compiling sip/cpp/sip_ribbonwxRibbonMSWArtProvider.cpp +[735/856] Compiling sip/cpp/sip_ribbonwxRibbonAUIArtProvider.cpp +[736/856] Compiling sip/cpp/sip_ribbonwxRibbonGallery.cpp +[737/856] Compiling sip/cpp/sip_ribbonwxRibbonGalleryEvent.cpp +[738/856] Compiling sip/cpp/sip_ribboncmodule.cpp +[739/856] Compiling sip/cpp/sip_ribbonwxRibbonButtonBarEvent.cpp [740/856] Compiling sip/cpp/sip_ribbonwxRibbonArtProvider.cpp -[741/856] Compiling sip/cpp/sip_propgridwxPropertyGridPageState.cpp -[742/856] Compiling sip/cpp/sip_propgridwxPGPaintData.cpp -[743/856] Compiling sip/cpp/sip_propgridwxIntProperty.cpp -[744/856] Compiling sip/cpp/sip_propgridwxPGChoiceAndButtonEditor.cpp -[745/856] Compiling sip/cpp/sip_propgridwxBoolProperty.cpp +[741/856] Compiling sip/cpp/sip_propgridwxStringProperty.cpp +[742/856] Compiling sip/cpp/sip_propgridwxPropertyGridEvent.cpp +[743/856] Compiling sip/cpp/sip_propgridwxPGTextCtrlAndButtonEditor.cpp +[744/856] Compiling sip/cpp/sip_propgridwxPGVariant.cpp +[745/856] Compiling sip/cpp/sip_propgridwxPGFileDialogAdapter.cpp [746/856] Compiling sip/cpp/sip_propgridwxDateProperty.cpp -[747/856] Compiling sip/cpp/sip_propgridwxPGVariant.cpp -[748/856] Compiling sip/cpp/sip_propgridwxPGCellRenderer.cpp +[747/856] Compiling sip/cpp/sip_propgridcmodule.cpp +[748/856] Compiling sip/cpp/sip_propgridwxPGComboBoxEditor.cpp [749/856] Compiling sip/cpp/sip_propgridwxEditEnumProperty.cpp [750/856] Linking build/waf/3.7/gtk3/_ribbon.cpython-37m-aarch64-linux-gnu.so [751/856] Compiling sip/cpp/sip_propgridwxUIntProperty.cpp -[752/856] Compiling sip/cpp/sip_propgridwxPropertyGridPage.cpp -[753/856] Compiling sip/cpp/sip_propgridwxPropertyGridManager.cpp -[754/856] Compiling sip/cpp/sip_propgridwxColourPropertyValue.cpp -[755/856] Compiling sip/cpp/sip_propgridwxPGArrayEditorDialog.cpp -[756/856] Compiling sip/cpp/sip_propgridwxPGChoiceEditor.cpp -[757/856] Compiling sip/cpp/sip_propgridwxPropertyGridIterator.cpp -[758/856] Compiling sip/cpp/sip_propgridwxFileProperty.cpp -[759/856] Compiling sip/cpp/sip_propgridwxPGMultiButton.cpp -[760/856] Compiling sip/cpp/sip_propgridwxPGInDialogValidator.cpp -[761/856] Compiling sip/cpp/sip_propgridwxFloatProperty.cpp -[762/856] Compiling sip/cpp/sip_propgridwxPGVIterator.cpp -[763/856] Compiling sip/cpp/sip_propgridwxArrayStringProperty.cpp -[764/856] Compiling sip/cpp/sip_propgridwxPGPropArgCls.cpp +[752/856] Compiling sip/cpp/sip_propgridwxColourPropertyValue.cpp +[753/856] Compiling sip/cpp/sip_propgridwxPGChoiceEditor.cpp +[754/856] Compiling sip/cpp/sip_propgridwxPropertyGridIterator.cpp +[755/856] Compiling sip/cpp/sip_propgridwxDirProperty.cpp +[756/856] Compiling sip/cpp/sip_propgridwxPropertyCategory.cpp +[757/856] Compiling sip/cpp/sip_propgridwxPGMultiButton.cpp +[758/856] Compiling sip/cpp/sip_propgridwxPGInDialogValidator.cpp +[759/856] Compiling sip/cpp/sip_propgridwxFileProperty.cpp +[760/856] Compiling sip/cpp/sip_propgridwxPGPropArgCls.cpp +[761/856] Compiling sip/cpp/sip_propgridwxCursorProperty.cpp +[762/856] Compiling sip/cpp/sip_propgridwxPropertyGridManager.cpp +[763/856] Compiling sip/cpp/sip_propgridwxFloatProperty.cpp +[764/856] Compiling sip/cpp/sip_propgridwxPGVariantList.cpp [765/856] Compiling sip/cpp/sip_propgridwxPGProperty.cpp -[766/856] Compiling sip/cpp/sip_propgridwxPGChoiceEntry.cpp +[766/856] Compiling sip/cpp/sip_propgridwxFlagsProperty.cpp [767/856] Compiling sip/cpp/sip_propgridwxPGDefaultRenderer.cpp -[768/856] Compiling sip/cpp/sip_propgridwxPGCellData.cpp +[768/856] Compiling sip/cpp/sip_propgridwxPGEditorDialogAdapter.cpp [769/856] Compiling sip/cpp/sip_propgridwxPropertyGridInterface.cpp [770/856] Compiling sip/cpp/sip_propgridwxPGWindowList.cpp [771/856] Compiling sip/cpp/sip_propgridwxPGChoicesData.cpp -[772/856] Compiling sip/cpp/sip_propgridwxPropertyCategory.cpp -[773/856] Compiling sip/cpp/sip_propgridwxPGVariantList.cpp -[774/856] Compiling sip/cpp/sip_propgridwxPGFileDialogAdapter.cpp +[772/856] Compiling sip/cpp/sip_propgridwxPropertyGridPage.cpp +[773/856] Compiling sip/cpp/sip_propgridwxArrayStringProperty.cpp +[774/856] Compiling sip/cpp/sip_propgridwxPGChoiceEntry.cpp [775/856] Compiling sip/cpp/sip_propgridwxSystemColourProperty.cpp ../../../../sip/cpp/sip_propgridwxPGProperty.cpp: In function 'PyObject* meth_wxPGProperty_AddChild(PyObject*, PyObject*, PyObject*)': ../../../../sip/cpp/sip_propgridwxPGProperty.cpp:1402:34: warning: 'void wxPGProperty::AddChild(wxPGProperty*)' is deprecated [-Wdeprecated-declarations] @@ -8720,69 +8754,69 @@ #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ -[776/856] Compiling sip/cpp/sip_propgridwxFlagsProperty.cpp -[777/856] Compiling sip/cpp/sip_propgridwxPGArrayStringEditorDialog.cpp -[778/856] Compiling sip/cpp/sip_propgridwxPGEditorDialogAdapter.cpp -[779/856] Compiling sip/cpp/sip_propgridwxPropertyGrid.cpp -[780/856] Compiling sip/cpp/sip_propgridwxPGTextCtrlAndButtonEditor.cpp -[781/856] Compiling sip/cpp/sip_propgridwxPGCell.cpp -[782/856] Compiling sip/cpp/sip_propgridwxPGCheckBoxEditor.cpp -[783/856] Compiling sip/cpp/sip_propgridwxMultiChoiceProperty.cpp +[776/856] Compiling sip/cpp/sip_propgridwxPGCellRenderer.cpp +[777/856] Compiling sip/cpp/sip_propgridwxPGArrayEditorDialog.cpp +[778/856] Compiling sip/cpp/sip_propgridwxIntProperty.cpp +[779/856] Compiling sip/cpp/sip_propgridwxLongStringProperty.cpp +[780/856] Compiling sip/cpp/sip_propgridwxPropertyGridPageState.cpp +[781/856] Compiling sip/cpp/sip_propgridwxPGPaintData.cpp +[782/856] Compiling sip/cpp/sip_propgridwxPropertyGrid.cpp +[783/856] Compiling sip/cpp/sip_propgridwxPGCheckBoxEditor.cpp [784/856] Compiling sip/cpp/sip_propgridwxPGEditor.cpp -[785/856] Compiling sip/cpp/sip_propgridwxFontProperty.cpp -[786/856] Compiling sip/cpp/sip_propgridwxEnumProperty.cpp -[787/856] Compiling sip/cpp/sip_propgridwxPGLongStringDialogAdapter.cpp -[788/856] Compiling sip/cpp/sip_propgridwxPropertyGridIteratorBase.cpp -[789/856] Compiling sip/cpp/sip_propgridcmodule.cpp +[785/856] Compiling sip/cpp/sip_propgridwxEnumProperty.cpp +[786/856] Compiling sip/cpp/sip_propgridwxPGCell.cpp +[787/856] Compiling sip/cpp/sip_propgridwxMultiChoiceProperty.cpp +[788/856] Compiling sip/cpp/sip_propgridwxNumericPropertyValidator.cpp +[789/856] Compiling sip/cpp/sip_propgridwxPropertyGridIteratorBase.cpp [790/856] Compiling sip/cpp/sip_propgridwxPropertyGridHitTestResult.cpp -[791/856] Compiling sip/cpp/sip_propgridwxPGSpinCtrlEditor.cpp +[791/856] Compiling sip/cpp/sip_propgridwxColourProperty.cpp [792/856] Compiling sip/cpp/sip_propgridwxArrayPGProperty.cpp -[793/856] Compiling sip/cpp/sip_propgridwxPGComboBoxEditor.cpp -[794/856] Compiling sip/cpp/sip_propgridwxNumericPropertyValidator.cpp -[795/856] Compiling sip/cpp/sip_propgridwxCursorProperty.cpp -[796/856] Compiling sip/cpp/sip_propgridwxPGValidationInfo.cpp -[797/856] Compiling sip/cpp/sip_propgridwxPGChoices.cpp -[798/856] Compiling sip/cpp/sip_propgridwxPropertyGridEvent.cpp +[793/856] Compiling sip/cpp/sip_propgridwxImageFileProperty.cpp +[794/856] Compiling sip/cpp/sip_propgridwxPGLongStringDialogAdapter.cpp +[795/856] Compiling sip/cpp/sip_propgridwxPGValidationInfo.cpp +[796/856] Compiling sip/cpp/sip_propgridwxPGChoices.cpp +[797/856] Compiling sip/cpp/sip_propgridwxPGArrayStringEditorDialog.cpp +[798/856] Compiling sip/cpp/sip_propgridwxPGCellData.cpp [799/856] Compiling sip/cpp/sip_propgridwxPGTextCtrlEditor.cpp -[800/856] Compiling sip/cpp/sip_propgridwxImageFileProperty.cpp -[801/856] Compiling sip/cpp/sip_propgridwxLongStringProperty.cpp -[802/856] Compiling sip/cpp/sip_propgridwxDirProperty.cpp -[803/856] Compiling sip/cpp/sip_propgridwxColourProperty.cpp -[804/856] Compiling sip/cpp/sip_propgridwxStringProperty.cpp +[800/856] Compiling sip/cpp/sip_propgridwxPGSpinCtrlEditor.cpp +[801/856] Compiling sip/cpp/sip_propgridwxBoolProperty.cpp +[802/856] Compiling sip/cpp/sip_propgridwxPGChoiceAndButtonEditor.cpp +[803/856] Compiling sip/cpp/sip_propgridwxFontProperty.cpp +[804/856] Compiling sip/cpp/sip_propgridwxPGVIterator.cpp [805/856] Compiling sip/cpp/sip_auiwxAuiToolBarItemArray.cpp -[806/856] Compiling sip/cpp/sip_auiwxAuiNotebook.cpp -[807/856] Compiling sip/cpp/sip_auiwxAuiPaneInfo.cpp +[806/856] Compiling sip/cpp/sip_auiwxAuiPaneButtonArray.cpp +[807/856] Compiling sip/cpp/sip_auiwxAuiNotebookPageArray.cpp [808/856] Compiling sip/cpp/sip_auiwxAuiNotebookPage.cpp [809/856] Compiling sip/cpp/sip_auiwxAuiMDIChildFrame.cpp [810/856] Compiling sip/cpp/sip_auiwxAuiSimpleTabArt.cpp -[811/856] Compiling sip/cpp/sip_auiwxAuiTabContainerButtonArray.cpp -[812/856] Compiling sip/cpp/sip_auiwxAuiMDIParentFrame.cpp -[813/856] Compiling sip/cpp/sip_auiwxAuiDockInfoPtrArray.cpp -[814/856] Linking build/waf/3.7/gtk3/_propgrid.cpython-37m-aarch64-linux-gnu.so -[815/856] Compiling sip/cpp/sip_auiwxAuiTabContainerButton.cpp -[816/856] Compiling sip/cpp/sip_auiwxAuiDockUIPart.cpp -[817/856] Compiling sip/cpp/sip_auiwxAuiPaneInfoArray.cpp -[818/856] Compiling sip/cpp/sip_auiwxAuiToolBar.cpp -[819/856] Compiling sip/cpp/sip_auiwxAuiTabContainer.cpp -[820/856] Compiling sip/cpp/sip_auiwxAuiDefaultTabArt.cpp -[821/856] Compiling sip/cpp/sip_auiwxAuiManagerEvent.cpp -[822/856] Compiling sip/cpp/sip_auiwxAuiDefaultToolBarArt.cpp -[823/856] Compiling sip/cpp/sip_auiwxAuiDockInfoArray.cpp -[824/856] Compiling sip/cpp/sip_auiwxAuiDockInfo.cpp -[825/856] Compiling sip/cpp/sip_auiwxAuiDefaultDockArt.cpp -[826/856] Compiling sip/cpp/sip_auiwxAuiDockArt.cpp -[827/856] Compiling sip/cpp/sip_auiwxAuiToolBarItem.cpp -[828/856] Compiling sip/cpp/sip_auiwxAuiNotebookPageArray.cpp -[829/856] Compiling sip/cpp/sip_auiwxAuiToolBarEvent.cpp -[830/856] Compiling sip/cpp/sip_auiwxAuiManager.cpp -[831/856] Compiling sip/cpp/sip_auiwxAuiTabCtrl.cpp +[811/856] Compiling sip/cpp/sip_auicmodule.cpp +[812/856] Compiling sip/cpp/sip_auiwxAuiTabArt.cpp +[813/856] Compiling sip/cpp/sip_auiwxAuiDockArt.cpp +[814/856] Compiling sip/cpp/sip_auiwxAuiManager.cpp +[815/856] Linking build/waf/3.7/gtk3/_propgrid.cpython-37m-aarch64-linux-gnu.so +[816/856] Compiling sip/cpp/sip_auiwxAuiMDIParentFrame.cpp +[817/856] Compiling sip/cpp/sip_auiwxAuiDefaultTabArt.cpp +[818/856] Compiling sip/cpp/sip_auiwxAuiManagerEvent.cpp +[819/856] Compiling sip/cpp/sip_auiwxAuiDefaultToolBarArt.cpp +[820/856] Compiling sip/cpp/sip_auiwxAuiDockInfoPtrArray.cpp +[821/856] Compiling sip/cpp/sip_auiwxAuiToolBar.cpp +[822/856] Compiling sip/cpp/sip_auiwxAuiToolBarEvent.cpp +[823/856] Compiling sip/cpp/sip_auiwxAuiDefaultDockArt.cpp +[824/856] Compiling sip/cpp/sip_auiwxAuiTabCtrl.cpp +[825/856] Compiling sip/cpp/sip_auiwxAuiDockInfo.cpp +[826/856] Compiling sip/cpp/sip_auiwxAuiTabContainerButton.cpp +[827/856] Compiling sip/cpp/sip_auiwxAuiPaneInfo.cpp +[828/856] Compiling sip/cpp/sip_auiwxAuiDockUIPart.cpp +[829/856] Compiling sip/cpp/sip_auiwxAuiPaneInfoArray.cpp +[830/856] Compiling sip/cpp/sip_auiwxAuiNotebook.cpp +[831/856] Compiling sip/cpp/sip_auiwxAuiTabContainer.cpp [832/856] Compiling sip/cpp/sip_auiwxAuiPaneButton.cpp [833/856] Compiling sip/cpp/sip_auiwxAuiMDIClientWindow.cpp -[834/856] Compiling sip/cpp/sip_auiwxAuiPaneButtonArray.cpp -[835/856] Compiling sip/cpp/sip_auicmodule.cpp -[836/856] Compiling sip/cpp/sip_auiwxAuiDockUIPartArray.cpp -[837/856] Compiling sip/cpp/sip_auiwxAuiTabArt.cpp -[838/856] Compiling sip/cpp/sip_auiwxAuiPaneInfoPtrArray.cpp +[834/856] Compiling sip/cpp/sip_auiwxAuiTabContainerButtonArray.cpp +[835/856] Compiling sip/cpp/sip_auiwxAuiDockUIPartArray.cpp +[836/856] Compiling sip/cpp/sip_auiwxAuiDockInfoArray.cpp +[837/856] Compiling sip/cpp/sip_auiwxAuiPaneInfoPtrArray.cpp +[838/856] Compiling sip/cpp/sip_auiwxAuiToolBarItem.cpp [839/856] Compiling sip/cpp/sip_auiwxAuiToolBarArt.cpp [840/856] Compiling sip/cpp/sip_auiwxAuiNotebookEvent.cpp [841/856] Compiling build/waf/3.7/gtk3/_core.cpython-37m-aarch64-linux-gnu.so @@ -8802,7 +8836,7 @@ [855/856] Linking build/waf/3.7/gtk3/_aui.cpython-37m-aarch64-linux-gnu.so [856/856] Compiling build/waf/3.7/gtk3/_aui.cpython-37m-aarch64-linux-gnu.so Waf: Leaving directory `/build/wxpython4.0-4.0.4+dfsg/build/waf/3.7/gtk3' -'build' finished successfully (20m48.011s) +'build' finished successfully (1h30m40.274s) ------------ BUILD FINISHED ------------ To use wxPython from the build folder (without installing): @@ -8810,7 +8844,7 @@ - You may also need to set your (DY)LD_LIBRARY_PATH to /build/wxpython4.0-4.0.4+dfsg/build/wxbld/gtk3/lib, or wherever the wxWidgets libs have been installed. -Finished command: build_py (20m51.167s) +Finished command: build_py (90m47.589s) Done! fakeroot debian/rules binary dh binary --with python2,python3 --buildsystem=pybuild @@ -10304,7 +10338,7 @@ Running command: install_py "/usr/bin/python3.7" setup.py install --skip-build --root=/build/wxpython4.0-4.0.4+dfsg/debian/tmp --install-layout=deb -Finished command: install_py (0m9.159s) +Finished command: install_py (0m9.141s) Done! dh_auto_test I: pybuild pybuild:272: mv wx wx.orig @@ -10319,21 +10353,21 @@ timeout func_only: False collecting ... collected 1734 items / 21 deselected -unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgGeneric PASSED [ 0%] +unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgGeneric FAILED [ 0%] unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgNative FAILED [ 0%] -unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgProperties PASSED [ 0%] -unittests/test_accel.py::accel_Tests::test_accelEntry1 PASSED [ 0%] -unittests/test_accel.py::accel_Tests::test_accelEntry2 FAILED [ 0%] +unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgProperties FAILED [ 0%] +unittests/test_accel.py::accel_Tests::test_accelEntry1 FAILED [ 0%] +unittests/test_accel.py::accel_Tests::test_accelEntry2 PASSED [ 0%] unittests/test_accel.py::accel_Tests::test_accelFlags PASSED [ 0%] unittests/test_accel.py::accel_Tests::test_accelNullObj PASSED [ 0%] -unittests/test_accel.py::accel_Tests::test_accelTable1 PASSED [ 0%] +unittests/test_accel.py::accel_Tests::test_accelTable1 FAILED [ 0%] unittests/test_accel.py::accel_Tests::test_accelTable2 FAILED [ 0%] unittests/test_access.py::access_Tests::test_access1 FAILED [ 0%] unittests/test_affinematrix2d.py::affinematrix2d_Tests::test_affinematrix2d1 PASSED [ 0%] unittests/test_animate.py::animate_Tests::test_animate1 PASSED [ 0%] unittests/test_animate.py::animate_Tests::test_animate2 PASSED [ 0%] unittests/test_app.py::App::test_App FAILED [ 0%] -unittests/test_app.py::App::test_App_OnInit PASSED [ 0%] +unittests/test_app.py::App::test_App_OnInit FAILED [ 0%] unittests/test_app.py::App::test_CallAfter PASSED [ 0%] unittests/test_app.py::App::test_PySimpleApp PASSED [ 0%] unittests/test_app.py::App::test_version PASSED [ 1%] @@ -10344,418 +10378,418 @@ unittests/test_arraystring.py::ArrayString::test_ArrayStringTypemaps PASSED [ 1%] unittests/test_artprov.py::artprov_Tests::test_artprovConstants PASSED [ 1%] unittests/test_artprov.py::artprov_Tests::test_artprovGetBitmap FAILED [ 1%] -unittests/test_asserts.py::asserts_Tests::test_asserts1 PASSED [ 1%] +unittests/test_asserts.py::asserts_Tests::test_asserts1 FAILED [ 1%] unittests/test_asserts.py::asserts_Tests::test_asserts2 PASSED [ 1%] -unittests/test_asserts.py::asserts_Tests::test_asserts3 PASSED [ 1%] +unittests/test_asserts.py::asserts_Tests::test_asserts3 FAILED [ 1%] unittests/test_auibar.py::auibar_Tests::test_auibar01 FAILED [ 1%] unittests/test_auibar.py::auibar_Tests::test_auibar02 PASSED [ 1%] unittests/test_auibar.py::auibar_Tests::test_auibar03 PASSED [ 1%] -unittests/test_auibar.py::auibar_Tests::test_auibar04 PASSED [ 1%] -unittests/test_auibar.py::auibar_Tests::test_auibar05 PASSED [ 1%] -unittests/test_auibar.py::auibar_Tests::test_auibar06 PASSED [ 1%] +unittests/test_auibar.py::auibar_Tests::test_auibar04 FAILED [ 1%] +unittests/test_auibar.py::auibar_Tests::test_auibar05 FAILED [ 1%] +unittests/test_auibar.py::auibar_Tests::test_auibar06 FAILED [ 1%] unittests/test_auibar.py::auibar_Tests::test_auibar07 PASSED [ 2%] -unittests/test_auibar.py::auibar_Tests::test_auibar08 FAILED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook01 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook02 PASSED [ 2%] +unittests/test_auibar.py::auibar_Tests::test_auibar08 PASSED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook01 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook02 FAILED [ 2%] unittests/test_auibook.py::auibook_Tests::test_auibook03 FAILED [ 2%] unittests/test_auibook.py::auibook_Tests::test_auibook04 PASSED [ 2%] unittests/test_auibook.py::auibook_Tests::test_auibook05 FAILED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook06 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook07 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook08 PASSED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook06 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook07 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook08 FAILED [ 2%] unittests/test_auibook.py::auibook_Tests::test_auibook09 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook10 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook11 PASSED [ 2%] -unittests/test_auidockart.py::auidockart_Tests::test_auidockart01 PASSED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook10 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook11 FAILED [ 2%] +unittests/test_auidockart.py::auidockart_Tests::test_auidockart01 FAILED [ 2%] unittests/test_auidockart.py::auidockart_Tests::test_auidockart02 FAILED [ 2%] unittests/test_auidockart.py::auidockart_Tests::test_auidockart03 PASSED [ 2%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager01 FAILED [ 2%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager02 PASSED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager03 PASSED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager04 PASSED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager01 PASSED [ 2%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager02 FAILED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager03 FAILED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager04 FAILED [ 3%] unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager05 FAILED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager06 PASSED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager06 FAILED [ 3%] unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager07 FAILED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager08 PASSED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager09 PASSED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager08 FAILED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager09 FAILED [ 3%] unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager10 FAILED [ 3%] -unittests/test_auitabmdi.py::auitabmdi_Tests::test_auitabmdi01 PASSED [ 3%] +unittests/test_auitabmdi.py::auitabmdi_Tests::test_auitabmdi01 FAILED [ 3%] unittests/test_axbase.py::axbase_Tests::test_axbase1 SKIPPED [ 3%] unittests/test_axbase.py::axbase_Tests::test_axbase2 SKIPPED [ 3%] unittests/test_axbase.py::axbase_Tests::test_axbase3 SKIPPED [ 3%] unittests/test_bannerwindow.py::bannerwindow_Tests::test_bannerwindow1 FAILED [ 3%] unittests/test_bannerwindow.py::bannerwindow_Tests::test_bannerwindow2 FAILED [ 3%] -unittests/test_bitmap.py::BitmapTests::test_BitmapCtor1 PASSED [ 3%] +unittests/test_bitmap.py::BitmapTests::test_BitmapCtor1 FAILED [ 3%] unittests/test_bitmap.py::BitmapTests::test_BitmapCtor2 FAILED [ 3%] -unittests/test_bitmap.py::BitmapTests::test_BitmapCtor3 FAILED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_BitmapCtor3 PASSED [ 4%] unittests/test_bitmap.py::BitmapTests::test_BitmapCtor4 PASSED [ 4%] unittests/test_bitmap.py::BitmapTests::test_BitmapCtor5 PASSED [ 4%] unittests/test_bitmap.py::BitmapTests::test_BitmapCtor6 PASSED [ 4%] unittests/test_bitmap.py::BitmapTests::test_BitmapMask PASSED [ 4%] unittests/test_bitmap.py::BitmapTests::test_BitmapMaskWithPalette SKIPPED [ 4%] unittests/test_bitmap.py::BitmapTests::test_BitmapNullBitmap FAILED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_BitmapSetMaskColour PASSED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_BitmapSetMaskColour FAILED [ 4%] unittests/test_bitmap.py::BitmapTests::test_Bitmap__nonzero__ FAILED [ 4%] unittests/test_bitmap.py::BitmapTests::test_EmptyBitmapFactory PASSED [ 4%] unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory1 PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory2 FAILED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory2 PASSED [ 4%] unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory3 PASSED [ 4%] unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory4 FAILED [ 4%] unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory5 FAILED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer1 PASSED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer1 FAILED [ 4%] unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer2 PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer3 FAILED [ 5%] -unittests/test_bitmap.py::BitmapTests::test_bitmapCopyToBuffer1 PASSED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer3 PASSED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapCopyToBuffer1 FAILED [ 5%] unittests/test_bitmap.py::BitmapTests::test_bitmapCopyToBuffer2 FAILED [ 5%] -unittests/test_bitmap.py::BitmapTests::test_bitmapCopyToBuffer3 PASSED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapCopyToBuffer3 FAILED [ 5%] unittests/test_bitmap.py::BitmapTests::test_bitmapEmptyFactory1 FAILED [ 5%] -unittests/test_bitmap.py::BitmapTests::test_bitmapEmptyFactory2 PASSED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapEmptyFactory2 FAILED [ 5%] unittests/test_bitmap.py::BitmapTests::test_bitmapFormatConstants FAILED [ 5%] unittests/test_bitmap.py::BitmapTests::test_bitmapHandle FAILED [ 5%] unittests/test_bitmap.py::BitmapTests::test_bitmapSetSize PASSED [ 5%] -unittests/test_bmpbuttn.py::BitmapButtonTests::test_BitmapButtonCtor FAILED [ 5%] +unittests/test_bmpbuttn.py::BitmapButtonTests::test_BitmapButtonCtor PASSED [ 5%] unittests/test_bmpbuttn.py::BitmapButtonTests::test_BitmapButtonDefaultCtor PASSED [ 5%] unittests/test_bmpcbox.py::bmpcbox_Tests::test_bmpcbox1 FAILED [ 5%] unittests/test_bmpcbox.py::bmpcbox_Tests::test_bmpcbox2 FAILED [ 5%] unittests/test_bookctrl.py::panel_Tests::test_bookctrl1 PASSED [ 5%] -unittests/test_bookctrl.py::panel_Tests::test_bookctrl2 FAILED [ 5%] -unittests/test_brush.py::BrushTests::test_BrushCtors FAILED [ 5%] -unittests/test_brush.py::BrushTests::test_BrushOperators FAILED [ 5%] -unittests/test_brush.py::BrushTests::test_StockBrushesExist FAILED [ 6%] +unittests/test_bookctrl.py::panel_Tests::test_bookctrl2 PASSED [ 5%] +unittests/test_brush.py::BrushTests::test_BrushCtors PASSED [ 5%] +unittests/test_brush.py::BrushTests::test_BrushOperators PASSED [ 5%] +unittests/test_brush.py::BrushTests::test_StockBrushesExist PASSED [ 6%] unittests/test_brush.py::BrushTests::test_StockBrushesInitialized PASSED [ 6%] unittests/test_brush.py::BrushTests::test_brushOldStyleNames FAILED [ 6%] unittests/test_brush.py::BrushTests::test_nonzero FAILED [ 6%] unittests/test_busyinfo.py::busyinfo_Tests::test_busyinfo1 PASSED [ 6%] unittests/test_busyinfo.py::busyinfo_Tests::test_busyinfo2 FAILED [ 6%] unittests/test_button.py::ButtonTests::test_ButtonCtors FAILED [ 6%] -unittests/test_button.py::ButtonTests::test_ButtonDefaultCtor PASSED [ 6%] -unittests/test_button.py::ButtonTests::test_ButtonProperties PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_calctrl1 PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_calctrl2 PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_calctrl3 FAILED [ 6%] +unittests/test_button.py::ButtonTests::test_ButtonDefaultCtor FAILED [ 6%] +unittests/test_button.py::ButtonTests::test_ButtonProperties FAILED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_calctrl1 FAILED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_calctrl2 FAILED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_calctrl3 PASSED [ 6%] unittests/test_calctrl.py::calctrl_Tests::test_calctrl4 PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_calevt1 PASSED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_calevt1 FAILED [ 6%] unittests/test_calctrl.py::calctrl_Tests::test_calevt2 FAILED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_genericcalctrl2 PASSED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_genericcalctrl2 FAILED [ 6%] unittests/test_calctrl.py::calctrl_Tests::test_genericcalctrl3 PASSED [ 6%] unittests/test_calctrl.py::calctrl_Tests::test_genericcalctrl4 FAILED [ 7%] -unittests/test_caret.py::caret_Tests::test_caret1 PASSED [ 7%] -unittests/test_caret.py::caret_Tests::test_caret2 PASSED [ 7%] -unittests/test_checkbox.py::checkbox_Tests::test_checkboxCtors PASSED [ 7%] -unittests/test_checkbox.py::checkbox_Tests::test_checkboxDefaultCtor PASSED [ 7%] +unittests/test_caret.py::caret_Tests::test_caret1 FAILED [ 7%] +unittests/test_caret.py::caret_Tests::test_caret2 FAILED [ 7%] +unittests/test_checkbox.py::checkbox_Tests::test_checkboxCtors FAILED [ 7%] +unittests/test_checkbox.py::checkbox_Tests::test_checkboxDefaultCtor FAILED [ 7%] unittests/test_checklst.py::CheckListBoxTests::test_CheckBoxCtors FAILED [ 7%] -unittests/test_checklst.py::CheckListBoxTests::test_CheckListBoxDefaultCtor PASSED [ 7%] -unittests/test_checklst.py::CheckListBoxTests::test_pyMethods1 PASSED [ 7%] -unittests/test_checklst.py::CheckListBoxTests::test_pyMethods2 PASSED [ 7%] -unittests/test_checklst.py::CheckListBoxTests::test_pyProperties PASSED [ 7%] -unittests/test_choicdlg.py::choicdlg_Tests::test_choicdlgMulti PASSED [ 7%] +unittests/test_checklst.py::CheckListBoxTests::test_CheckListBoxDefaultCtor FAILED [ 7%] +unittests/test_checklst.py::CheckListBoxTests::test_pyMethods1 FAILED [ 7%] +unittests/test_checklst.py::CheckListBoxTests::test_pyMethods2 FAILED [ 7%] +unittests/test_checklst.py::CheckListBoxTests::test_pyProperties FAILED [ 7%] +unittests/test_choicdlg.py::choicdlg_Tests::test_choicdlgMulti FAILED [ 7%] unittests/test_choicdlg.py::choicdlg_Tests::test_choicdlgSingle FAILED [ 7%] unittests/test_choicdlg.py::choicdlg_Tests::test_choicdlgSingleFunc FAILED [ 7%] -unittests/test_choice.py::ChoiceTests::test_ChoiceCtors PASSED [ 7%] +unittests/test_choice.py::ChoiceTests::test_ChoiceCtors FAILED [ 7%] unittests/test_choice.py::ChoiceTests::test_ChoiceDefaultCtor FAILED [ 7%] -unittests/test_choice.py::ChoiceTests::test_ChoiceProperties PASSED [ 7%] -unittests/test_choicebk.py::choicebk_Tests::test_choicebk1 PASSED [ 7%] -unittests/test_choicebk.py::choicebk_Tests::test_choicebk2 PASSED [ 7%] +unittests/test_choice.py::ChoiceTests::test_ChoiceProperties FAILED [ 7%] +unittests/test_choicebk.py::choicebk_Tests::test_choicebk1 FAILED [ 7%] +unittests/test_choicebk.py::choicebk_Tests::test_choicebk2 FAILED [ 7%] unittests/test_choicebk.py::choicebk_Tests::test_choicebk3 FAILED [ 8%] unittests/test_choicebk.py::choicebk_Tests::test_choicebk4 PASSED [ 8%] -unittests/test_clipbrd.py::clipbrd_Tests::test_clipbrd1 FAILED [ 8%] -unittests/test_clipbrd.py::clipbrd_Tests::test_clpbrd2 FAILED [ 8%] -unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr1 PASSED [ 8%] -unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr2 PASSED [ 8%] -unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr3 PASSED [ 8%] +unittests/test_clipbrd.py::clipbrd_Tests::test_clipbrd1 PASSED [ 8%] +unittests/test_clipbrd.py::clipbrd_Tests::test_clpbrd2 PASSED [ 8%] +unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr1 FAILED [ 8%] +unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr2 FAILED [ 8%] +unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr3 FAILED [ 8%] unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc1 FAILED [ 8%] -unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc2 PASSED [ 8%] -unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc3 PASSED [ 8%] -unittests/test_cmndata.py::cmndata_tests::test_PD_PaperSize PASSED [ 8%] -unittests/test_cmndata.py::cmndata_tests::test_cmndataClassConstructors PASSED [ 8%] -unittests/test_cmndata.py::cmndata_tests::test_cppMethods PASSED [ 8%] -unittests/test_cmndata.py::cmndata_tests::test_nonzero PASSED [ 8%] -unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneCtors PASSED [ 8%] -unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneDefaultCtor PASSED [ 8%] -unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneProperties PASSED [ 8%] -unittests/test_colordlg.py::colordlg_Tests::test_colordlg1 PASSED [ 9%] -unittests/test_colordlg.py::colordlg_Tests::test_colordlg2 PASSED [ 9%] -unittests/test_colour.py::Colour::test_ColourTypemaps PASSED [ 9%] -unittests/test_colour.py::Colour::test_GetIM PASSED [ 9%] +unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc2 FAILED [ 8%] +unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc3 FAILED [ 8%] +unittests/test_cmndata.py::cmndata_tests::test_PD_PaperSize FAILED [ 8%] +unittests/test_cmndata.py::cmndata_tests::test_cmndataClassConstructors FAILED [ 8%] +unittests/test_cmndata.py::cmndata_tests::test_cppMethods FAILED [ 8%] +unittests/test_cmndata.py::cmndata_tests::test_nonzero FAILED [ 8%] +unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneCtors FAILED [ 8%] +unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneDefaultCtor FAILED [ 8%] +unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneProperties FAILED [ 8%] +unittests/test_colordlg.py::colordlg_Tests::test_colordlg1 FAILED [ 9%] +unittests/test_colordlg.py::colordlg_Tests::test_colordlg2 FAILED [ 9%] +unittests/test_colour.py::Colour::test_ColourTypemaps FAILED [ 9%] +unittests/test_colour.py::Colour::test_GetIM FAILED [ 9%] unittests/test_colour.py::Colour::test_GetPixel PASSED [ 9%] unittests/test_colour.py::Colour::test_converters PASSED [ 9%] unittests/test_colour.py::Colour::test_copy_ctor PASSED [ 9%] -unittests/test_colour.py::Colour::test_default_ctor PASSED [ 9%] -unittests/test_colour.py::Colour::test_numpy_ctor PASSED [ 9%] -unittests/test_colour.py::Colour::test_rgb_ctor PASSED [ 9%] -unittests/test_colour.py::Colour::test_rgba_ctor PASSED [ 9%] +unittests/test_colour.py::Colour::test_default_ctor FAILED [ 9%] +unittests/test_colour.py::Colour::test_numpy_ctor FAILED [ 9%] +unittests/test_colour.py::Colour::test_rgb_ctor FAILED [ 9%] +unittests/test_colour.py::Colour::test_rgba_ctor FAILED [ 9%] unittests/test_colour.py::Colour::test_seq_ctor1 PASSED [ 9%] -unittests/test_colour.py::Colour::test_seq_ctor2 PASSED [ 9%] -unittests/test_combo.py::combo_Tests::test_combo1 PASSED [ 9%] +unittests/test_colour.py::Colour::test_seq_ctor2 FAILED [ 9%] +unittests/test_combo.py::combo_Tests::test_combo1 FAILED [ 9%] unittests/test_combo.py::combo_Tests::test_comboConstants PASSED [ 9%] -unittests/test_combobox.py::ComboBoxTests::test_ComboBoxCtors PASSED [ 9%] +unittests/test_combobox.py::ComboBoxTests::test_ComboBoxCtors FAILED [ 9%] unittests/test_combobox.py::ComboBoxTests::test_ComboBoxDefaultCtor PASSED [ 9%] unittests/test_combobox.py::ComboBoxTests::test_comboboxHasCut PASSED [ 10%] unittests/test_combobox.py::ComboBoxTests::test_comboboxSetSelection PASSED [ 10%] unittests/test_combobox.py::ComboBoxTests::test_comboboxTextSelection PASSED [ 10%] -unittests/test_commandlinkbutton.py::commandlinkbutton_Tests::test_commandlinkbutton1 PASSED [ 10%] -unittests/test_commandlinkbutton.py::commandlinkbutton_Tests::test_commandlinkbutton2 PASSED [ 10%] -unittests/test_commandlinkbutton.py::commandlinkbutton_Tests::test_commandlinkbutton3 PASSED [ 10%] -unittests/test_config.py::ConfigTests::test_Config1 PASSED [ 10%] -unittests/test_config.py::ConfigTests::test_Config2 PASSED [ 10%] -unittests/test_config.py::ConfigTests::test_Config3 PASSED [ 10%] +unittests/test_commandlinkbutton.py::commandlinkbutton_Tests::test_commandlinkbutton1 FAILED [ 10%] +unittests/test_commandlinkbutton.py::commandlinkbutton_Tests::test_commandlinkbutton2 FAILED [ 10%] +unittests/test_commandlinkbutton.py::commandlinkbutton_Tests::test_commandlinkbutton3 FAILED [ 10%] +unittests/test_config.py::ConfigTests::test_Config1 FAILED [ 10%] +unittests/test_config.py::ConfigTests::test_Config2 FAILED [ 10%] +unittests/test_config.py::ConfigTests::test_Config3 FAILED [ 10%] unittests/test_config.py::ConfigTests::test_Config4 PASSED [ 10%] -unittests/test_config.py::ConfigTests::test_Config5 PASSED [ 10%] -unittests/test_config.py::ConfigTests::test_Config6 PASSED [ 10%] -unittests/test_config.py::ConfigTests::test_ConfigEnums PASSED [ 10%] -unittests/test_control.py::ControlTests::test_ControlCtors PASSED [ 10%] -unittests/test_control.py::ControlTests::test_ControlDefaultCtor PASSED [ 10%] -unittests/test_cshelp.py::cshelp_Tests::test_cshelp1 PASSED [ 10%] -unittests/test_cshelp.py::cshelp_Tests::test_cshelp2 PASSED [ 10%] -unittests/test_cursor.py::CursorTests::test_CursorCtors PASSED [ 11%] -unittests/test_cursor.py::CursorTests::test_CursorStockIDsExist PASSED [ 11%] +unittests/test_config.py::ConfigTests::test_Config5 FAILED [ 10%] +unittests/test_config.py::ConfigTests::test_Config6 FAILED [ 10%] +unittests/test_config.py::ConfigTests::test_ConfigEnums FAILED [ 10%] +unittests/test_control.py::ControlTests::test_ControlCtors FAILED [ 10%] +unittests/test_control.py::ControlTests::test_ControlDefaultCtor FAILED [ 10%] +unittests/test_cshelp.py::cshelp_Tests::test_cshelp1 FAILED [ 10%] +unittests/test_cshelp.py::cshelp_Tests::test_cshelp2 FAILED [ 10%] +unittests/test_cursor.py::CursorTests::test_CursorCtors FAILED [ 11%] +unittests/test_cursor.py::CursorTests::test_CursorStockIDsExist FAILED [ 11%] unittests/test_cursor.py::CursorTests::test_Cursor__nonzero__ PASSED [ 11%] unittests/test_cursor.py::CursorTests::test_NullCursor PASSED [ 11%] -unittests/test_cursor.py::CursorTests::test_StockCursorsExist PASSED [ 11%] -unittests/test_cursor.py::CursorTests::test_StockCursorsInitialized PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_BitmapDataObject PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_CustomDataObject PASSED [ 11%] +unittests/test_cursor.py::CursorTests::test_StockCursorsExist FAILED [ 11%] +unittests/test_cursor.py::CursorTests::test_StockCursorsInitialized FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_BitmapDataObject FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_CustomDataObject FAILED [ 11%] unittests/test_dataobj.py::DataObjTests::test_DataFormat PASSED [ 11%] unittests/test_dataobj.py::DataObjTests::test_DataFormatIDsExist PASSED [ 11%] unittests/test_dataobj.py::DataObjTests::test_DataObject PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObject2 PASSED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_DataObject2 FAILED [ 11%] unittests/test_dataobj.py::DataObjTests::test_DataObjectComposite PASSED [ 11%] unittests/test_dataobj.py::DataObjTests::test_DataObjectGetAllFormats PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple1 PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple2 PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple3 PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_FileDataObject PASSED [ 12%] -unittests/test_dataobj.py::DataObjTests::test_HTMLDataObject PASSED [ 12%] +unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple1 FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple2 FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple3 FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_FileDataObject FAILED [ 12%] +unittests/test_dataobj.py::DataObjTests::test_HTMLDataObject FAILED [ 12%] unittests/test_dataobj.py::DataObjTests::test_TextDataObject PASSED [ 12%] unittests/test_dataobj.py::DataObjTests::test_TextDataObjectClipboard PASSED [ 12%] unittests/test_dataobj.py::DataObjTests::test_URLDataObject PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewColumn PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewConst PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewCtrl1 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewEvt1 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewEvt2 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewHitTest PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewIconText1 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewIconText2 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewIndexListModel1 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewIndexListModel2 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem1 PASSED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewColumn FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewConst FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewCtrl1 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewEvt1 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewEvt2 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewHitTest FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewIconText1 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewIconText2 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewIndexListModel1 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewIndexListModel2 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem1 FAILED [ 12%] unittests/test_dataview.py::dataview_Tests::test_dataviewItem2 PASSED [ 12%] unittests/test_dataview.py::dataview_Tests::test_dataviewItem3 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem4 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem5 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem6 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem7 PASSED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem4 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem5 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem6 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem7 FAILED [ 13%] unittests/test_dataview.py::dataview_Tests::test_dataviewItem8 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItemAttr1 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItemAttr2 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewListCtrl1 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewListCtrl2 PASSED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItemAttr1 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItemAttr2 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewListCtrl1 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewListCtrl2 FAILED [ 13%] unittests/test_dataview.py::dataview_Tests::test_dataviewModel1 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewModel2 PASSED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewModel2 FAILED [ 13%] unittests/test_dataview.py::dataview_Tests::test_dataviewModelNotifier1 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewModelNotifier2 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer01 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer02 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer03 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer04 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer05 PASSED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewModelNotifier2 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer01 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer02 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer03 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer04 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer05 FAILED [ 14%] unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer06 PASSED [ 14%] unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer07 PASSED [ 14%] unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer08 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer09 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer10 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer11 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer12 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewTreeCtrl1 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewTreeCtrl2 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewVirtualListModel1 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewVirtualModel2 PASSED [ 14%] -unittests/test_datectrl.py::datectrl_Tests::test_datectrl1 PASSED [ 14%] -unittests/test_datectrl.py::datectrl_Tests::test_datectrl2 PASSED [ 14%] -unittests/test_datectrl.py::datectrl_Tests::test_genericdatectrl1 PASSED [ 14%] -unittests/test_datectrl.py::datectrl_Tests::test_genericdatectrl2 PASSED [ 14%] -unittests/test_dateevt.py::dateevt_Tests::test_dateevt1 PASSED [ 15%] -unittests/test_dateevt.py::dateevt_Tests::test_dateevt2 PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_ConstantsExist PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_DCBrushChanger PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_DCClipper PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_DCFontChanger PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_DCPenChanger PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_DCTextColourChanger PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_FontMetrics PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_NativeGTKHandle PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_NativeHandle PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_NativeMacHandle PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_NativeWinHandle PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_dcContextManager PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_dcFullTextExtents PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_dcPointLists PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_dcTextExtents PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_trickyStuff PASSED [ 15%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawElipseLists PASSED [ 16%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawLineLists PASSED [ 16%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPloygonLists PASSED [ 16%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPointArray PASSED [ 16%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPointLists PASSED [ 16%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawRectangleArray PASSED [ 16%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawRectangleLists PASSED [ 16%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawTextLists PASSED [ 16%] -unittests/test_dcbuffer.py::BufferedDCTests::test_0_CheckKeepReference PASSED [ 16%] -unittests/test_dcbuffer.py::BufferedDCTests::test_AutoBufferedPaintDC PASSED [ 16%] -unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCConstantsExist PASSED [ 16%] -unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCCtors PASSED [ 16%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer09 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer10 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer11 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer12 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewTreeCtrl1 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewTreeCtrl2 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewVirtualListModel1 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewVirtualModel2 FAILED [ 14%] +unittests/test_datectrl.py::datectrl_Tests::test_datectrl1 FAILED [ 14%] +unittests/test_datectrl.py::datectrl_Tests::test_datectrl2 FAILED [ 14%] +unittests/test_datectrl.py::datectrl_Tests::test_genericdatectrl1 FAILED [ 14%] +unittests/test_datectrl.py::datectrl_Tests::test_genericdatectrl2 FAILED [ 14%] +unittests/test_dateevt.py::dateevt_Tests::test_dateevt1 FAILED [ 15%] +unittests/test_dateevt.py::dateevt_Tests::test_dateevt2 FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_ConstantsExist FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_DCBrushChanger FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_DCClipper FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_DCFontChanger FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_DCPenChanger FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_DCTextColourChanger FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_FontMetrics FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_NativeGTKHandle FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_NativeHandle FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_NativeMacHandle FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_NativeWinHandle FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_dcContextManager FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_dcFullTextExtents FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_dcPointLists FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_dcTextExtents FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_trickyStuff FAILED [ 15%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawElipseLists FAILED [ 16%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawLineLists FAILED [ 16%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPloygonLists FAILED [ 16%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPointArray FAILED [ 16%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPointLists FAILED [ 16%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawRectangleArray FAILED [ 16%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawRectangleLists FAILED [ 16%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawTextLists FAILED [ 16%] +unittests/test_dcbuffer.py::BufferedDCTests::test_0_CheckKeepReference FAILED [ 16%] +unittests/test_dcbuffer.py::BufferedDCTests::test_AutoBufferedPaintDC FAILED [ 16%] +unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCConstantsExist FAILED [ 16%] +unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCCtors FAILED [ 16%] unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCDefaultCtor PASSED [ 16%] unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedPaintDC PASSED [ 16%] unittests/test_dcclient.py::ClientDCTests::test_ClientDC PASSED [ 16%] unittests/test_dcclient.py::ClientDCTests::test_PaintDC PASSED [ 16%] unittests/test_dcclient.py::ClientDCTests::test_WindowDC PASSED [ 16%] unittests/test_dcgraph.py::dcgraph_tests::test_GCDC1 PASSED [ 17%] -unittests/test_dcgraph.py::dcgraph_tests::test_GCDC2 PASSED [ 17%] +unittests/test_dcgraph.py::dcgraph_tests::test_GCDC2 FAILED [ 17%] unittests/test_dcgraph.py::dcgraph_tests::test_GCDC3 SKIPPED [ 17%] unittests/test_dcgraph.py::dcgraph_tests::test_GCDC4 PASSED [ 17%] unittests/test_dcmemory.py::MemoryDCTests::test_MemoryDC1 PASSED [ 17%] -unittests/test_dcmemory.py::MemoryDCTests::test_MemoryDC2 PASSED [ 17%] -unittests/test_dcmemory.py::MemoryDCTests::test_MemoryDC3 PASSED [ 17%] +unittests/test_dcmemory.py::MemoryDCTests::test_MemoryDC2 FAILED [ 17%] +unittests/test_dcmemory.py::MemoryDCTests::test_MemoryDC3 FAILED [ 17%] unittests/test_dcmirror.py::MirrorDCTests::test_MirrorDC1 PASSED [ 17%] unittests/test_dcprint.py::dcprint_tests::test_PrinterDC1 SKIPPED [ 17%] -unittests/test_dcps.py::dcps_tests::test_PostscriptDC1 PASSED [ 17%] +unittests/test_dcps.py::dcps_tests::test_PostscriptDC1 FAILED [ 17%] unittests/test_dcscreen.py::ScreenDCTests::test_ScreenDC1 PASSED [ 17%] -unittests/test_dcsvg.py::SvgDCTests::test_SvgDC1 PASSED [ 17%] -unittests/test_deadobj.py::deadobj_Tests::test_deadobjException PASSED [ 17%] -unittests/test_deadobj.py::deadobj_Tests::test_deadobj__nonzero__1 PASSED [ 17%] -unittests/test_deadobj.py::deadobj_Tests::test_deadobj__nonzero__2 PASSED [ 17%] -unittests/test_debug.py::debug_Tests::test_debug1 PASSED [ 17%] -unittests/test_defs.py::defs_Tests::test_constants1 PASSED [ 17%] -unittests/test_defs.py::defs_Tests::test_constants2 PASSED [ 18%] -unittests/test_dialog.py::dialog_Tests::test_dialog1 PASSED [ 18%] -unittests/test_dialog.py::dialog_Tests::test_dialog2 PASSED [ 18%] -unittests/test_dialog.py::dialog_Tests::test_dialogDefaultCtor PASSED [ 18%] -unittests/test_dialog.py::dialog_Tests::test_dialogTextSizer PASSED [ 18%] -unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlCtor PASSED [ 18%] -unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlDefaultCtor PASSED [ 18%] -unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlFlags PASSED [ 18%] -unittests/test_dirdlg.py::dirdlg_Tests::test_dirdlg PASSED [ 18%] +unittests/test_dcsvg.py::SvgDCTests::test_SvgDC1 FAILED [ 17%] +unittests/test_deadobj.py::deadobj_Tests::test_deadobjException FAILED [ 17%] +unittests/test_deadobj.py::deadobj_Tests::test_deadobj__nonzero__1 FAILED [ 17%] +unittests/test_deadobj.py::deadobj_Tests::test_deadobj__nonzero__2 FAILED [ 17%] +unittests/test_debug.py::debug_Tests::test_debug1 FAILED [ 17%] +unittests/test_defs.py::defs_Tests::test_constants1 FAILED [ 17%] +unittests/test_defs.py::defs_Tests::test_constants2 FAILED [ 18%] +unittests/test_dialog.py::dialog_Tests::test_dialog1 FAILED [ 18%] +unittests/test_dialog.py::dialog_Tests::test_dialog2 FAILED [ 18%] +unittests/test_dialog.py::dialog_Tests::test_dialogDefaultCtor FAILED [ 18%] +unittests/test_dialog.py::dialog_Tests::test_dialogTextSizer FAILED [ 18%] +unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlCtor FAILED [ 18%] +unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlDefaultCtor FAILED [ 18%] +unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlFlags FAILED [ 18%] +unittests/test_dirdlg.py::dirdlg_Tests::test_dirdlg FAILED [ 18%] unittests/test_dnd.py::dnd_Tests::test_dnd1 PASSED [ 18%] -unittests/test_dnd.py::dnd_Tests::test_dndDropSource PASSED [ 18%] +unittests/test_dnd.py::dnd_Tests::test_dndDropSource FAILED [ 18%] unittests/test_dnd.py::dnd_Tests::test_dndDropTarget PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag1 PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag2 PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag3 PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag4 PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag5 PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag6 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag1 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag2 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag3 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag4 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag5 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag6 PASSED [ 19%] -unittests/test_dtor.py::dtor_Tests::test_dtor PASSED [ 19%] -unittests/test_editlbox.py::editlbox_Tests::test_editlbox1 PASSED [ 19%] -unittests/test_editlbox.py::editlbox_Tests::test_editlbox2 PASSED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag1 FAILED [ 18%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag2 FAILED [ 18%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag3 FAILED [ 18%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag4 FAILED [ 18%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag5 FAILED [ 18%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag6 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag1 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag2 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag3 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag4 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag5 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag6 FAILED [ 19%] +unittests/test_dtor.py::dtor_Tests::test_dtor FAILED [ 19%] +unittests/test_editlbox.py::editlbox_Tests::test_editlbox1 FAILED [ 19%] +unittests/test_editlbox.py::editlbox_Tests::test_editlbox2 FAILED [ 19%] unittests/test_editlbox.py::editlbox_Tests::test_editlbox3 PASSED [ 19%] unittests/test_event.py::Events::test_ActivateEvent_ctor PASSED [ 19%] -unittests/test_event.py::Events::test_ChildFocusEvent_ctor PASSED [ 19%] -unittests/test_event.py::Events::test_ClientData1 PASSED [ 19%] -unittests/test_event.py::Events::test_ClientData2 PASSED [ 19%] -unittests/test_event.py::Events::test_ClipboardTextEvent_ctor PASSED [ 19%] -unittests/test_event.py::Events::test_CloseEvent_ctor PASSED [ 19%] -unittests/test_event.py::Events::test_CommandEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_ContextMenuEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_DisplayChangedEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_DropFilesEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_DropFilesEvent_tweaks PASSED [ 20%] -unittests/test_event.py::Events::test_EraseEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_EventCategory PASSED [ 20%] -unittests/test_event.py::Events::test_Event_ctor PASSED [ 20%] +unittests/test_event.py::Events::test_ChildFocusEvent_ctor FAILED [ 19%] +unittests/test_event.py::Events::test_ClientData1 FAILED [ 19%] +unittests/test_event.py::Events::test_ClientData2 FAILED [ 19%] +unittests/test_event.py::Events::test_ClipboardTextEvent_ctor FAILED [ 19%] +unittests/test_event.py::Events::test_CloseEvent_ctor FAILED [ 19%] +unittests/test_event.py::Events::test_CommandEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_ContextMenuEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_DisplayChangedEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_DropFilesEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_DropFilesEvent_tweaks FAILED [ 20%] +unittests/test_event.py::Events::test_EraseEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_EventCategory FAILED [ 20%] +unittests/test_event.py::Events::test_Event_ctor FAILED [ 20%] unittests/test_event.py::Events::test_FocusEvent_ctor PASSED [ 20%] unittests/test_event.py::Events::test_HelpEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_IconizeEvent_ctor PASSED [ 20%] +unittests/test_event.py::Events::test_IconizeEvent_ctor FAILED [ 20%] unittests/test_event.py::Events::test_IdleEvent_ctor PASSED [ 20%] unittests/test_event.py::Events::test_InitDialogEvent_ctor PASSED [ 20%] unittests/test_event.py::Events::test_JoystickEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_KeyEvent_GetUnicodeKey PASSED [ 20%] -unittests/test_event.py::Events::test_KeyEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_MaximizeEvent_ctor PASSED [ 20%] +unittests/test_event.py::Events::test_KeyEvent_GetUnicodeKey FAILED [ 20%] +unittests/test_event.py::Events::test_KeyEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_MaximizeEvent_ctor FAILED [ 20%] unittests/test_event.py::Events::test_MenuEvent_ctor PASSED [ 21%] unittests/test_event.py::Events::test_MouseCaptureChangedEvent_ctor PASSED [ 21%] unittests/test_event.py::Events::test_MouseCaptureLostEvent_ctor PASSED [ 21%] unittests/test_event.py::Events::test_MouseEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_MoveEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_NavigationKeyEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_NotifyEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_PaintEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_PaletteChangedEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_QueryNewPaletteEvent_ctor PASSED [ 21%] +unittests/test_event.py::Events::test_MoveEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_NavigationKeyEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_NotifyEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_PaintEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_PaletteChangedEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_QueryNewPaletteEvent_ctor FAILED [ 21%] unittests/test_event.py::Events::test_ScrollEvent_ctor PASSED [ 21%] unittests/test_event.py::Events::test_ScrollWinEvent_ctor PASSED [ 21%] unittests/test_event.py::Events::test_SetCursorEvent_ctor PASSED [ 21%] unittests/test_event.py::Events::test_ShowEvent_ctor PASSED [ 21%] unittests/test_event.py::Events::test_SizeEvent_ctor PASSED [ 21%] unittests/test_event.py::Events::test_SysColourChangedEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_UpdateUIEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_WindowCreateEvent_ctor PASSED [ 22%] -unittests/test_event.py::Events::test_WindowDestroyEvent_ctor PASSED [ 22%] -unittests/test_event.py::Events::test_eventBinding PASSED [ 22%] -unittests/test_event.py::Events::test_eventUnbinding1 PASSED [ 22%] -unittests/test_event.py::Events::test_eventUnbinding2 PASSED [ 22%] -unittests/test_event.py::Events::test_eventUnbinding3 PASSED [ 22%] -unittests/test_event.py::Events::test_eventUnbinding4 PASSED [ 22%] +unittests/test_event.py::Events::test_UpdateUIEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_WindowCreateEvent_ctor FAILED [ 22%] +unittests/test_event.py::Events::test_WindowDestroyEvent_ctor FAILED [ 22%] +unittests/test_event.py::Events::test_eventBinding FAILED [ 22%] +unittests/test_event.py::Events::test_eventUnbinding1 FAILED [ 22%] +unittests/test_event.py::Events::test_eventUnbinding2 FAILED [ 22%] +unittests/test_event.py::Events::test_eventUnbinding3 FAILED [ 22%] +unittests/test_event.py::Events::test_eventUnbinding4 FAILED [ 22%] unittests/test_event.py::Events::test_evtHandlerSubclass PASSED [ 22%] -unittests/test_eventfilter.py::eventfilter_Tests::test_EventFilter_ctor PASSED [ 22%] -unittests/test_eventfilter.py::eventfilter_Tests::test_EventFilter_subclass PASSED [ 22%] -unittests/test_fdrepdlg.py::fdrepdlg_Tests::test_fdrepdlgConstants PASSED [ 22%] -unittests/test_fdrepdlg.py::fdrepdlg_Tests::test_fdrepdlgDlg PASSED [ 22%] +unittests/test_eventfilter.py::eventfilter_Tests::test_EventFilter_ctor FAILED [ 22%] +unittests/test_eventfilter.py::eventfilter_Tests::test_EventFilter_subclass FAILED [ 22%] +unittests/test_fdrepdlg.py::fdrepdlg_Tests::test_fdrepdlgConstants FAILED [ 22%] +unittests/test_fdrepdlg.py::fdrepdlg_Tests::test_fdrepdlgDlg FAILED [ 22%] unittests/test_filectrl.py::filectrl_Tests::test_filectrl1 PASSED [ 22%] -unittests/test_filectrl.py::filectrl_Tests::test_filectrl2 PASSED [ 22%] -unittests/test_filectrl.py::filectrl_Tests::test_filectrl3 FAILED [ 22%] -unittests/test_filectrl.py::filectrl_Tests::test_filectrl4 PASSED [ 22%] -unittests/test_filectrl.py::filectrl_Tests::test_filectrl5 PASSED [ 22%] +unittests/test_filectrl.py::filectrl_Tests::test_filectrl2 FAILED [ 22%] +unittests/test_filectrl.py::filectrl_Tests::test_filectrl3 PASSED [ 22%] +unittests/test_filectrl.py::filectrl_Tests::test_filectrl4 FAILED [ 22%] +unittests/test_filectrl.py::filectrl_Tests::test_filectrl5 FAILED [ 22%] unittests/test_filedlg.py::filedlg_Tests::test_filedlg FAILED [ 23%] -unittests/test_filedlg.py::filedlg_Tests::test_filedlgFlags PASSED [ 23%] +unittests/test_filedlg.py::filedlg_Tests::test_filedlgFlags FAILED [ 23%] unittests/test_filedlg.py::filedlg_Tests::test_filedlgProperties FAILED [ 23%] -unittests/test_filedlg.py::filedlg_Tests::test_filedlgTweaks PASSED [ 23%] -unittests/test_filehistory.py::filehistory_Tests::test_filehistory1 PASSED [ 23%] -unittests/test_filehistory.py::filehistory_Tests::test_filehistory2 PASSED [ 23%] +unittests/test_filedlg.py::filedlg_Tests::test_filedlgTweaks FAILED [ 23%] +unittests/test_filehistory.py::filehistory_Tests::test_filehistory1 FAILED [ 23%] +unittests/test_filehistory.py::filehistory_Tests::test_filehistory2 FAILED [ 23%] unittests/test_filesys.py::filesys_Tests::test_filesys02 PASSED [ 23%] unittests/test_filesys.py::filesys_Tests::test_filesys03 PASSED [ 23%] -unittests/test_filesys.py::filesys_Tests::test_filesys04 PASSED [ 23%] +unittests/test_filesys.py::filesys_Tests::test_filesys04 FAILED [ 23%] unittests/test_filesys.py::filesys_Tests::test_filesysClasses PASSED [ 23%] -unittests/test_filesys.py::filesys_Tests::test_filesysMemoryFSHandler PASSED [ 23%] -unittests/test_font.py::font_Tests::test_font PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontEquality PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontFixedWidth PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontFlags PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontFlagsOld PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontFontinfo1 PASSED [ 23%] +unittests/test_filesys.py::filesys_Tests::test_filesysMemoryFSHandler FAILED [ 23%] +unittests/test_font.py::font_Tests::test_font FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontEquality FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontFixedWidth FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontFlags FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontFlagsOld FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontFontinfo1 FAILED [ 23%] unittests/test_font.py::font_Tests::test_fontFontinfo2 PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontOk PASSED [ 24%] -unittests/test_font.py::font_Tests::test_fontOldStyleNames PASSED [ 24%] -unittests/test_font.py::font_Tests::test_fontProperties PASSED [ 24%] -unittests/test_font.py::font_Tests::test_stockFonts PASSED [ 24%] -unittests/test_fontdlg.py::fontdlg_Tests::test_fontdlg1 PASSED [ 24%] -unittests/test_fontdlg.py::fontdlg_Tests::test_fontdlg2 PASSED [ 24%] -unittests/test_fontenum.py::fontenum_Tests::test_fontenum1 PASSED [ 24%] -unittests/test_fontenum.py::fontenum_Tests::test_fontenum2 PASSED [ 24%] -unittests/test_fontenum.py::fontenum_Tests::test_fontenum3 PASSED [ 24%] +unittests/test_font.py::font_Tests::test_fontOk FAILED [ 24%] +unittests/test_font.py::font_Tests::test_fontOldStyleNames FAILED [ 24%] +unittests/test_font.py::font_Tests::test_fontProperties FAILED [ 24%] +unittests/test_font.py::font_Tests::test_stockFonts FAILED [ 24%] +unittests/test_fontdlg.py::fontdlg_Tests::test_fontdlg1 FAILED [ 24%] +unittests/test_fontdlg.py::fontdlg_Tests::test_fontdlg2 FAILED [ 24%] +unittests/test_fontenum.py::fontenum_Tests::test_fontenum1 FAILED [ 24%] +unittests/test_fontenum.py::fontenum_Tests::test_fontenum2 FAILED [ 24%] +unittests/test_fontenum.py::fontenum_Tests::test_fontenum3 FAILED [ 24%] unittests/test_fontmap.py::fontmap_Tests::test_fontmap1 PASSED [ 24%] -unittests/test_fontmap.py::fontmap_Tests::test_fontmap2 PASSED [ 24%] -unittests/test_fontmap.py::fontmap_Tests::test_fontmap3 PASSED [ 24%] -unittests/test_fontutil.py::fontutil_Tests::test_fontutil PASSED [ 24%] -unittests/test_fontutil.py::fontutil_Tests::test_fontutilProperties PASSED [ 24%] -unittests/test_frame.py::frame_Tests::test_frameCtors PASSED [ 24%] -unittests/test_frame.py::frame_Tests::test_frameProperties PASSED [ 24%] -unittests/test_frame.py::frame_Tests::test_frameStyles PASSED [ 24%] -unittests/test_frame.py::frame_Tests::test_frameTopLevelTweaks PASSED [ 25%] +unittests/test_fontmap.py::fontmap_Tests::test_fontmap2 FAILED [ 24%] +unittests/test_fontmap.py::fontmap_Tests::test_fontmap3 FAILED [ 24%] +unittests/test_fontutil.py::fontutil_Tests::test_fontutil FAILED [ 24%] +unittests/test_fontutil.py::fontutil_Tests::test_fontutilProperties FAILED [ 24%] +unittests/test_frame.py::frame_Tests::test_frameCtors FAILED [ 24%] +unittests/test_frame.py::frame_Tests::test_frameProperties FAILED [ 24%] +unittests/test_frame.py::frame_Tests::test_frameStyles FAILED [ 24%] +unittests/test_frame.py::frame_Tests::test_frameTopLevelTweaks FAILED [ 25%] unittests/test_fswatcher.py::fswatcher_Tests::test_fswatcher1 PASSED [ 25%] -unittests/test_gauge.py::gauge_Tests::test_gauge PASSED [ 25%] -unittests/test_gauge.py::gauge_Tests::test_gaugeProperties PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_GetIM_position PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_GetIM_span PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos1 PASSED [ 25%] +unittests/test_gauge.py::gauge_Tests::test_gauge FAILED [ 25%] +unittests/test_gauge.py::gauge_Tests::test_gaugeProperties FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_GetIM_position FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_GetIM_span FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos1 FAILED [ 25%] unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos2 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos3 PASSED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos3 FAILED [ 25%] unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos4 PASSED [ 25%] unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_sizer1 PASSED [ 25%] unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_sizer2 PASSED [ 25%] @@ -10819,8 +10853,8 @@ unittests/test_gdicmn.py::TestRect::test_tlbr_ctor PASSED [ 29%] unittests/test_gdicmn.py::TestRect::test_tlbr_ctor2 PASSED [ 29%] unittests/test_gdicmn.py::TestRect::test_xywh_ctor PASSED [ 29%] -unittests/test_gdicmn.py::intersectRect_Tests::test_intersectRect01 PASSED [ 29%] -unittests/test_gdicmn.py::intersectRect_Tests::test_intersectRect02 PASSED [ 29%] +unittests/test_gdicmn.py::intersectRect_Tests::test_intersectRect01 FAILED [ 29%] +unittests/test_gdicmn.py::intersectRect_Tests::test_intersectRect02 FAILED [ 29%] unittests/test_geometry.py::Point2D::test_GetIM PASSED [ 29%] unittests/test_geometry.py::Point2D::test_copy_ctor PASSED [ 29%] unittests/test_geometry.py::Point2D::test_default_ctor PASSED [ 29%] @@ -10829,269 +10863,269 @@ unittests/test_geometry.py::Rect2D::test_copy_ctor PASSED [ 29%] unittests/test_geometry.py::Rect2D::test_default_ctor PASSED [ 29%] unittests/test_geometry.py::Rect2D::test_xywh_ctor PASSED [ 29%] -unittests/test_graphics.py::graphics_Tests::test_gcCreate1 PASSED [ 29%] -unittests/test_graphics.py::graphics_Tests::test_gcCreate2 PASSED [ 29%] +unittests/test_graphics.py::graphics_Tests::test_gcCreate1 FAILED [ 29%] +unittests/test_graphics.py::graphics_Tests::test_gcCreate2 FAILED [ 29%] unittests/test_graphics.py::graphics_Tests::test_gcCreate3 PASSED [ 29%] unittests/test_graphics.py::graphics_Tests::test_gcCreate4 FAILED [ 30%] unittests/test_graphics.py::graphics_Tests::test_gcCreateBitmap PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcCreateBrush PASSED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcCreateBrush FAILED [ 30%] unittests/test_graphics.py::graphics_Tests::test_gcCreateFont PASSED [ 30%] unittests/test_graphics.py::graphics_Tests::test_gcCreateMatrix PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcCreatePath PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcCreatePen PASSED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcCreatePath FAILED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcCreatePen FAILED [ 30%] unittests/test_graphics.py::graphics_Tests::test_gcDrawLines PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcGradientStops PASSED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcGradientStops FAILED [ 30%] unittests/test_graphics.py::graphics_Tests::test_gcNullObjects PASSED [ 30%] unittests/test_graphics.py::graphics_Tests::test_gcStrokeLines1 PASSED [ 30%] unittests/test_graphics.py::graphics_Tests::test_gcStrokeLines2 PASSED [ 30%] unittests/test_graphics.py::graphics_Tests::test_gcStrokeLines3 PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcTextExtents PASSED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcTextExtents FAILED [ 30%] unittests/test_grid.py::grid_Tests::test_GetIM PASSED [ 30%] -unittests/test_grid.py::grid_Tests::test_grid00 PASSED [ 30%] -unittests/test_grid.py::grid_Tests::test_grid01 PASSED [ 30%] +unittests/test_grid.py::grid_Tests::test_grid00 FAILED [ 30%] +unittests/test_grid.py::grid_Tests::test_grid01 FAILED [ 30%] unittests/test_grid.py::grid_Tests::test_grid02 PASSED [ 30%] -unittests/test_grid.py::grid_Tests::test_grid03 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid04 PASSED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid03 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid04 FAILED [ 31%] unittests/test_grid.py::grid_Tests::test_grid05 PASSED [ 31%] unittests/test_grid.py::grid_Tests::test_grid06 PASSED [ 31%] unittests/test_grid.py::grid_Tests::test_grid07 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid08 PASSED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid08 FAILED [ 31%] unittests/test_grid.py::grid_Tests::test_grid09 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid10 PASSED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid10 FAILED [ 31%] unittests/test_grid.py::grid_Tests::test_grid11 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid12 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid13 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid14 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid15 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid16 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid17 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid17a PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid18 PASSED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid12 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid13 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid14 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid15 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid16 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid17 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid17a FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid18 FAILED [ 31%] unittests/test_grid.py::grid_Tests::test_grid18a PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid19 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid20 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid21 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid22 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid23 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid24 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid25 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid26 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid27 PASSED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid19 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid20 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid21 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid22 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid23 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid24 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid25 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid26 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid27 FAILED [ 32%] unittests/test_grid.py::grid_Tests::test_grid28 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid29 PASSED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid29 FAILED [ 32%] unittests/test_grid.py::grid_Tests::test_grid30 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid31 PASSED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid31 FAILED [ 32%] unittests/test_grid.py::grid_Tests::test_grid32 PASSED [ 32%] unittests/test_grid.py::grid_Tests::test_grid33 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid34 PASSED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid34 FAILED [ 32%] unittests/test_grid.py::grid_Tests::test_grid35 PASSED [ 33%] unittests/test_grid.py::grid_Tests::test_grid36 PASSED [ 33%] unittests/test_grid.py::grid_Tests::test_grid37 PASSED [ 33%] unittests/test_grid.py::grid_Tests::test_grid38 PASSED [ 33%] unittests/test_grid.py::grid_Tests::test_grid39 PASSED [ 33%] unittests/test_grid.py::grid_Tests::test_grid40 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid41 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid42 PASSED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid41 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid42 FAILED [ 33%] unittests/test_grid.py::grid_Tests::test_grid43 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid44 PASSED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid44 FAILED [ 33%] unittests/test_grid.py::grid_Tests::test_grid45 PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolAbsClass1 PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolAbsClass2 PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolConstants PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolCtor1 PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolCtor2 PASSED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolAbsClass1 FAILED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolAbsClass2 FAILED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolConstants FAILED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolCtor1 FAILED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolCtor2 FAILED [ 33%] unittests/test_headercol.py::headercol_Tests::test_headercolProperties PASSED [ 33%] unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl1 PASSED [ 34%] unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl2 PASSED [ 34%] unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl3 PASSED [ 34%] -unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl4 PASSED [ 34%] +unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl4 FAILED [ 34%] unittests/test_help.py::help_Tests::test_help1 PASSED [ 34%] unittests/test_helpctrl.py::helpctrl_Tests::test_helpctrl1 PASSED [ 34%] -unittests/test_helpdata.py::helpdata_Tests::test_helpdata1 PASSED [ 34%] -unittests/test_helpdata.py::helpdata_Tests::test_helpdata2 PASSED [ 34%] +unittests/test_helpdata.py::helpdata_Tests::test_helpdata1 FAILED [ 34%] +unittests/test_helpdata.py::helpdata_Tests::test_helpdata2 FAILED [ 34%] unittests/test_helpdata.py::helpdata_Tests::test_helpdata3 PASSED [ 34%] -unittests/test_helpdata.py::helpdata_Tests::test_helpdata4 PASSED [ 34%] +unittests/test_helpdata.py::helpdata_Tests::test_helpdata4 FAILED [ 34%] unittests/test_helpdlg.py::helpdlg_Tests::test_helpdlg1 PASSED [ 34%] unittests/test_helpext.py::helpext_Tests::test_helpext1 PASSED [ 34%] unittests/test_helpfrm.py::helpfrm_Tests::test_helpfrm1 PASSED [ 34%] unittests/test_helpwnd.py::helpwnd_Tests::test_helpwnd1 PASSED [ 34%] unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell1 PASSED [ 34%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell2 PASSED [ 34%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell3 PASSED [ 34%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell4 PASSED [ 35%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell5 PASSED [ 35%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell6 PASSED [ 35%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell2 FAILED [ 34%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell3 FAILED [ 34%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell4 FAILED [ 35%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell5 FAILED [ 35%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell6 FAILED [ 35%] unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell7 PASSED [ 35%] unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell8 PASSED [ 35%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell9 PASSED [ 35%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell9 FAILED [ 35%] unittests/test_htmldefs.py::htmldefs_Tests::test_htmldefs1 PASSED [ 35%] -unittests/test_htmllbox.py::htmllbox_Tests::test_htmllbox1 PASSED [ 35%] +unittests/test_htmllbox.py::htmllbox_Tests::test_htmllbox1 FAILED [ 35%] unittests/test_htmllbox.py::htmllbox_Tests::test_htmllbox2 PASSED [ 35%] -unittests/test_htmllbox.py::htmllbox_Tests::test_htmllbox3 PASSED [ 35%] +unittests/test_htmllbox.py::htmllbox_Tests::test_htmllbox3 FAILED [ 35%] unittests/test_htmlpars.py::htmlpars_Tests::test_htmlpars1 PASSED [ 35%] unittests/test_htmlprint.py::htmlprint_Tests::test_htmlprint1 PASSED [ 35%] unittests/test_htmlprint.py::htmlprint_Tests::test_htmlprint2 PASSED [ 35%] -unittests/test_htmlprint.py::htmlprint_Tests::test_htmlprint3 PASSED [ 35%] +unittests/test_htmlprint.py::htmlprint_Tests::test_htmlprint3 FAILED [ 35%] unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin1 PASSED [ 35%] -unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin2 PASSED [ 35%] -unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin3 PASSED [ 35%] -unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin4 PASSED [ 36%] -unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin5 PASSED [ 36%] -unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin6 PASSED [ 36%] -unittests/test_htmlwinpars.py::htmlwinpars_Tests::test_htmlwinpars1 PASSED [ 36%] -unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink1 PASSED [ 36%] -unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink2 PASSED [ 36%] +unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin2 FAILED [ 35%] +unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin3 FAILED [ 35%] +unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin4 FAILED [ 36%] +unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin5 FAILED [ 36%] +unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin6 FAILED [ 36%] +unittests/test_htmlwinpars.py::htmlwinpars_Tests::test_htmlwinpars1 FAILED [ 36%] +unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink1 FAILED [ 36%] +unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink2 FAILED [ 36%] unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink3 PASSED [ 36%] -unittests/test_icon.py::icon_Tests::test_icon1 PASSED [ 36%] +unittests/test_icon.py::icon_Tests::test_icon1 FAILED [ 36%] unittests/test_icon.py::icon_Tests::test_icon2 PASSED [ 36%] -unittests/test_icon.py::icon_Tests::test_icon3 PASSED [ 36%] -unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl1 PASSED [ 36%] -unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl2 PASSED [ 36%] -unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl3 PASSED [ 36%] +unittests/test_icon.py::icon_Tests::test_icon3 FAILED [ 36%] +unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl1 FAILED [ 36%] +unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl2 FAILED [ 36%] +unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl3 FAILED [ 36%] unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl4 PASSED [ 36%] unittests/test_iconloc.py::iconloc_Tests::test_iconloc1 PASSED [ 36%] unittests/test_iconloc.py::iconloc_Tests::test_iconloc2 PASSED [ 36%] unittests/test_image.py::image_Tests::test_imageCtor1 PASSED [ 36%] -unittests/test_image.py::image_Tests::test_imageCtor2 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor3 PASSED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor2 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor3 FAILED [ 37%] unittests/test_image.py::image_Tests::test_imageCtor4 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor4b PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor4c PASSED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor4b FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor4c FAILED [ 37%] unittests/test_image.py::image_Tests::test_imageCtor5 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor5b PASSED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor5b FAILED [ 37%] unittests/test_image.py::image_Tests::test_imageCtor6 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor7 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor8 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor9 PASSED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor7 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor8 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor9 FAILED [ 37%] unittests/test_image.py::image_Tests::test_imageGetAlpha PASSED [ 37%] unittests/test_image.py::image_Tests::test_imageGetAlphaDataBuffer PASSED [ 37%] unittests/test_image.py::image_Tests::test_imageGetData PASSED [ 37%] unittests/test_image.py::image_Tests::test_imageGetDataBuffer PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageHandlerDerivation PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageHandlerStandardDerivations PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageHandlerStandardDerivationsDerivation PASSED [ 38%] +unittests/test_image.py::image_Tests::test_imageHandlerDerivation FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageHandlerStandardDerivations FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageHandlerStandardDerivationsDerivation FAILED [ 38%] unittests/test_image.py::image_Tests::test_imageMethodChain PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageNestedClasses PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageOtherStuff PASSED [ 38%] +unittests/test_image.py::image_Tests::test_imageNestedClasses FAILED [ 38%] +unittests/test_image.py::image_Tests::test_imageOtherStuff FAILED [ 38%] unittests/test_image.py::image_Tests::test_imageProperties PASSED [ 38%] unittests/test_image.py::image_Tests::test_imageRGBHSV PASSED [ 38%] unittests/test_image.py::image_Tests::test_imageSetAlpha1 PASSED [ 38%] unittests/test_image.py::image_Tests::test_imageSetAlphaBuffer PASSED [ 38%] unittests/test_image.py::image_Tests::test_imageSetData1 PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageSetData2 PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageSetDataBuffer1 PASSED [ 38%] +unittests/test_image.py::image_Tests::test_imageSetData2 FAILED [ 38%] +unittests/test_image.py::image_Tests::test_imageSetDataBuffer1 FAILED [ 38%] unittests/test_image.py::image_Tests::test_imageSetDataBuffer2 PASSED [ 38%] unittests/test_imaglist.py::image_Tests::test_imaglist PASSED [ 38%] unittests/test_imaglist.py::image_Tests::test_imaglistConstants PASSED [ 38%] unittests/test_infobar.py::infobar_Tests::test_infobar1 PASSED [ 38%] -unittests/test_infobar.py::infobar_Tests::test_infobar2 PASSED [ 38%] -unittests/test_infobar.py::infobar_Tests::test_infobarCtor PASSED [ 38%] +unittests/test_infobar.py::infobar_Tests::test_infobar2 FAILED [ 38%] +unittests/test_infobar.py::infobar_Tests::test_infobarCtor FAILED [ 38%] unittests/test_infobar.py::infobar_Tests::test_infobarDefaultCtor PASSED [ 38%] -unittests/test_intl.py::intl_Tests::test_intlConstants PASSED [ 39%] -unittests/test_intl.py::intl_Tests::test_intlGetLocaleFunc PASSED [ 39%] -unittests/test_intl.py::intl_Tests::test_intlGetString PASSED [ 39%] -unittests/test_intl.py::intl_Tests::test_intlLanguageInfo PASSED [ 39%] -unittests/test_intl.py::intl_Tests::test_intlLocale PASSED [ 39%] +unittests/test_intl.py::intl_Tests::test_intlConstants FAILED [ 39%] +unittests/test_intl.py::intl_Tests::test_intlGetLocaleFunc FAILED [ 39%] +unittests/test_intl.py::intl_Tests::test_intlGetString FAILED [ 39%] +unittests/test_intl.py::intl_Tests::test_intlLanguageInfo FAILED [ 39%] +unittests/test_intl.py::intl_Tests::test_intlLocale FAILED [ 39%] unittests/test_joystick.py::joystick_Tests::test_joystick1 PASSED [ 39%] unittests/test_joystick.py::joystick_Tests::test_joystick2 PASSED [ 39%] unittests/test_kbdstate.py::KeyboardState::test_KeyboardState PASSED [ 39%] unittests/test_layout.py::layout_Tests::test_layout PASSED [ 39%] unittests/test_laywin.py::laywin_Tests::test_laywin1 PASSED [ 39%] -unittests/test_laywin.py::laywin_Tests::test_laywin2 PASSED [ 39%] -unittests/test_laywin.py::laywin_Tests::test_laywin3 PASSED [ 39%] +unittests/test_laywin.py::laywin_Tests::test_laywin2 FAILED [ 39%] +unittests/test_laywin.py::laywin_Tests::test_laywin3 FAILED [ 39%] unittests/test_laywin.py::laywin_Tests::test_laywin4 PASSED [ 39%] -unittests/test_laywin.py::laywin_Tests::test_laywin5 PASSED [ 39%] -unittests/test_lib_agw_advancedsplash.py::lib_agw_advancedsplash_Tests::test_lib_agw_advancedsplashConstantsExist PASSED [ 39%] -unittests/test_lib_agw_advancedsplash.py::lib_agw_advancedsplash_Tests::test_lib_agw_advancedsplashCtor PASSED [ 39%] +unittests/test_laywin.py::laywin_Tests::test_laywin5 FAILED [ 39%] +unittests/test_lib_agw_advancedsplash.py::lib_agw_advancedsplash_Tests::test_lib_agw_advancedsplashConstantsExist FAILED [ 39%] +unittests/test_lib_agw_advancedsplash.py::lib_agw_advancedsplash_Tests::test_lib_agw_advancedsplashCtor FAILED [ 39%] unittests/test_lib_agw_aquabutton.py::lib_agw_aquabutton_Tests::test_lib_agw_aquabuttonCtor PASSED [ 39%] unittests/test_lib_agw_aquabutton.py::lib_agw_aquabutton_Tests::test_lib_agw_aquabuttonMethods PASSED [ 40%] -unittests/test_lib_agw_aui.py::lib_agw_aui_Tests::test_lib_agw_auiCtor PASSED [ 40%] -unittests/test_lib_agw_aui.py::lib_agw_aui_additional_Tests::test_lib_agw_auiConstantsExist PASSED [ 40%] +unittests/test_lib_agw_aui.py::lib_agw_aui_Tests::test_lib_agw_auiCtor FAILED [ 40%] +unittests/test_lib_agw_aui.py::lib_agw_aui_additional_Tests::test_lib_agw_auiConstantsExist FAILED [ 40%] unittests/test_lib_agw_aui.py::lib_agw_aui_additional_Tests::test_lib_agw_auiEvents PASSED [ 40%] unittests/test_lib_agw_aui.py::lib_agw_aui_additional_Tests::test_lib_agw_aui_ToolbarCtor PASSED [ 40%] unittests/test_lib_agw_aui_dockart.py::lib_agw_aui_dockart_Tests::test_lib_agw_aui_dockartCtor PASSED [ 40%] unittests/test_lib_agw_aui_tabart.py::lib_agw_aui_tabart_Tests::test_lib_agw_aui_tabartCtor PASSED [ 40%] unittests/test_lib_agw_aui_utilities.py::lib_agw_aui_utilities_Tests::test_lib_agw_aui_utilititiesCtor PASSED [ 40%] unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipConstantsExist PASSED [ 40%] -unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipCtor PASSED [ 40%] -unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipMethods PASSED [ 40%] +unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipCtor FAILED [ 40%] +unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipMethods FAILED [ 40%] unittests/test_lib_agw_buttonpanel.py::lib_agw_buttonpanel_Tests::test_lib_agw_buttonpanelConstantsExist PASSED [ 40%] unittests/test_lib_agw_buttonpanel.py::lib_agw_buttonpanel_Tests::test_lib_agw_buttonpanelCtor PASSED [ 40%] unittests/test_lib_agw_buttonpanel.py::lib_agw_buttonpanel_Tests::test_lib_agw_buttonpanelMethods PASSED [ 40%] unittests/test_lib_agw_cubecolourdialog.py::lib_agw_cubecolourdialog_Tests::test_lib_agw_cubecolourdialogConstantsExist PASSED [ 40%] -unittests/test_lib_agw_cubecolourdialog.py::lib_agw_cubecolourdialog_Tests::test_lib_agw_cubecolourdialogCtor PASSED [ 40%] +unittests/test_lib_agw_cubecolourdialog.py::lib_agw_cubecolourdialog_Tests::test_lib_agw_cubecolourdialogCtor FAILED [ 40%] unittests/test_lib_agw_cubecolourdialog.py::lib_agw_cubecolourdialog_Tests::test_lib_agw_cubecolourdialogMethods PASSED [ 40%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlConstantsExist PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlCtor PASSED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlConstantsExist FAILED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlCtor FAILED [ 41%] unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlEventsExist PASSED [ 41%] unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlGetSelections PASSED [ 41%] unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlItemCheck PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlSetWindow PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlTreeItem PASSED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlSetWindow FAILED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlTreeItem FAILED [ 41%] unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlTreeItemData PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlTreeItemPyData PASSED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlTreeItemPyData FAILED [ 41%] unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuConstantsExist PASSED [ 41%] -unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuCtor PASSED [ 41%] -unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuEvents PASSED [ 41%] -unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuOpen PASSED [ 41%] +unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuCtor FAILED [ 41%] +unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuEvents FAILED [ 41%] +unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuOpen FAILED [ 41%] unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookConstantsExist PASSED [ 41%] unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookCtor PASSED [ 41%] unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookDeletePages PASSED [ 41%] -unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookEvents PASSED [ 41%] -unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookMethods PASSED [ 42%] +unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookEvents FAILED [ 41%] +unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookMethods FAILED [ 42%] unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookPages PASSED [ 42%] unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookTabStyles PASSED [ 42%] unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinConstantsExist PASSED [ 42%] -unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinCtor PASSED [ 42%] +unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinCtor FAILED [ 42%] unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinEvents PASSED [ 42%] -unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinMethods PASSED [ 42%] -unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspin_fixedpoint PASSED [ 42%] -unittests/test_lib_agw_fmcustomizedlg.py::lib_agw_fmcustomizedlg_Tests::test_lib_agw_fmcustomizedlgCtor PASSED [ 42%] -unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarConstantsExist PASSED [ 42%] +unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinMethods FAILED [ 42%] +unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspin_fixedpoint FAILED [ 42%] +unittests/test_lib_agw_fmcustomizedlg.py::lib_agw_fmcustomizedlg_Tests::test_lib_agw_fmcustomizedlgCtor FAILED [ 42%] +unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarConstantsExist FAILED [ 42%] unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarCtor PASSED [ 42%] unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarEvents PASSED [ 42%] -unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarMethods PASSED [ 42%] +unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarMethods FAILED [ 42%] unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterConstantsExist PASSED [ 42%] unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterCtor PASSED [ 42%] -unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterEvents PASSED [ 42%] +unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterEvents FAILED [ 42%] unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterMethods PASSED [ 42%] unittests/test_lib_agw_genericmessagedialog.py::lib_agw_genericmessagedialog_Tests::test_lib_agw_genericmessagedialogConstantsExist PASSED [ 43%] -unittests/test_lib_agw_genericmessagedialog.py::lib_agw_genericmessagedialog_Tests::test_lib_agw_genericmessagedialogCtor PASSED [ 43%] -unittests/test_lib_agw_genericmessagedialog.py::lib_agw_genericmessagedialog_Tests::test_lib_agw_genericmessagedialogMethods PASSED [ 43%] -unittests/test_lib_agw_gradientbutton.py::lib_agw_gradientbutton_Tests::test_lib_agw_gradientbuttonCtor PASSED [ 43%] -unittests/test_lib_agw_gradientbutton.py::lib_agw_gradientbutton_Tests::test_lib_agw_gradientbuttonMethods PASSED [ 43%] +unittests/test_lib_agw_genericmessagedialog.py::lib_agw_genericmessagedialog_Tests::test_lib_agw_genericmessagedialogCtor FAILED [ 43%] +unittests/test_lib_agw_genericmessagedialog.py::lib_agw_genericmessagedialog_Tests::test_lib_agw_genericmessagedialogMethods FAILED [ 43%] +unittests/test_lib_agw_gradientbutton.py::lib_agw_gradientbutton_Tests::test_lib_agw_gradientbuttonCtor FAILED [ 43%] +unittests/test_lib_agw_gradientbutton.py::lib_agw_gradientbutton_Tests::test_lib_agw_gradientbuttonMethods FAILED [ 43%] unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkCtor PASSED [ 43%] -unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkEvents PASSED [ 43%] -unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkMethods PASSED [ 43%] -unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistColumns PASSED [ 43%] -unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistConstantsExist PASSED [ 43%] -unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistCtor PASSED [ 43%] +unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkEvents FAILED [ 43%] +unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkMethods FAILED [ 43%] +unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistColumns FAILED [ 43%] +unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistConstantsExist FAILED [ 43%] +unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistCtor FAILED [ 43%] unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistEvents PASSED [ 43%] unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistTreeItem PASSED [ 43%] -unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobar1 PASSED [ 43%] -unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobar2 PASSED [ 43%] +unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobar1 FAILED [ 43%] +unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobar2 FAILED [ 43%] unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobarCtor PASSED [ 43%] unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlConstantsExist PASSED [ 43%] -unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlCtor PASSED [ 44%] -unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlEvents PASSED [ 44%] -unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlMethods PASSED [ 44%] +unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlCtor FAILED [ 44%] +unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlEvents FAILED [ 44%] +unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlMethods FAILED [ 44%] unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookConstantsExist PASSED [ 44%] -unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookCtor PASSED [ 44%] -unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookDeletePages PASSED [ 44%] -unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookEvents PASSED [ 44%] +unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookCtor FAILED [ 44%] +unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookDeletePages FAILED [ 44%] +unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookEvents FAILED [ 44%] unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookPages PASSED [ 44%] -unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookTabPosition PASSED [ 44%] +unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookTabPosition FAILED [ 44%] unittests/test_lib_agw_multidirdialog.py::lib_agw_multidirdialog_Tests::test_lib_agw_multidirdialogConstantsExist PASSED [ 44%] unittests/test_lib_agw_multidirdialog.py::lib_agw_multidirdialog_Tests::test_lib_agw_multidirdialogCtor PASSED [ 44%] -unittests/test_lib_agw_multidirdialog.py::lib_agw_multidirdialog_Tests::test_lib_agw_multidirdialogMethods PASSED [ 44%] -unittests/test_lib_agw_peakmeter.py::lib_agw_peakmeter_Tests::test_lib_agw_peakmeterConstantsExist PASSED [ 44%] +unittests/test_lib_agw_multidirdialog.py::lib_agw_multidirdialog_Tests::test_lib_agw_multidirdialogMethods FAILED [ 44%] +unittests/test_lib_agw_peakmeter.py::lib_agw_peakmeter_Tests::test_lib_agw_peakmeterConstantsExist FAILED [ 44%] unittests/test_lib_agw_peakmeter.py::lib_agw_peakmeter_Tests::test_lib_agw_peakmeterCtor PASSED [ 44%] unittests/test_lib_agw_peakmeter.py::lib_agw_peakmeter_Tests::test_lib_agw_peakmeterMethods PASSED [ 44%] unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerConstantsExist PASSED [ 44%] -unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerCtor PASSED [ 44%] -unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerPersistValue PASSED [ 45%] -unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerRestore PASSED [ 45%] -unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerZZZZCleanup PASSED [ 45%] +unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerCtor FAILED [ 44%] +unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerPersistValue FAILED [ 45%] +unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerRestore FAILED [ 45%] +unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerZZZZCleanup FAILED [ 45%] unittests/test_lib_agw_piectrl.py::lib_agw_piectrl_Tests::test_lib_agw_piectrlCtor PASSED [ 45%] INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/usr/lib/python2.7/dist-packages/_pytest/main.py", line 184, in wrap_session @@ -11138,7 +11172,7 @@ INTERNALERROR> raise Failed(msg=msg, pytrace=pytrace) INTERNALERROR> Failed: Timeout >60.0s - 55 failed, 713 passed, 6 skipped, 21 deselected, 1 warnings in 473.28 seconds = + 456 failed, 312 passed, 6 skipped, 21 deselected, 1 warnings in 824.56 seconds I: pybuild pybuild:298: mv wx.orig wx I: pybuild pybuild:272: mv wx wx.orig I: pybuild base:217: PYTHONPATH=build/lib.linux-arm64-3.7 PYTHONDONTWRITEBYTECODE=1 xvfb-run -a python3.7 -m pytest -v --boxed --timeout=60 -k 'not (display_Tests or glcanvas_Tests or mousemanager_Tests or numdlg_Tests or uiaction_MouseTests or uiaction_KeyboardTests or unichar_Tests or valtext_Tests or test_frameRestore or test_grid_pi)' unittests || true @@ -11153,450 +11187,450 @@ collecting ... collected 1734 items / 21 deselected unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgGeneric PASSED [ 0%] -unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgNative PASSED [ 0%] -unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgProperties PASSED [ 0%] -unittests/test_accel.py::accel_Tests::test_accelEntry1 PASSED [ 0%] -unittests/test_accel.py::accel_Tests::test_accelEntry2 PASSED [ 0%] -unittests/test_accel.py::accel_Tests::test_accelFlags PASSED [ 0%] -unittests/test_accel.py::accel_Tests::test_accelNullObj PASSED [ 0%] +unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgNative FAILED [ 0%] +unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgProperties FAILED [ 0%] +unittests/test_accel.py::accel_Tests::test_accelEntry1 FAILED [ 0%] +unittests/test_accel.py::accel_Tests::test_accelEntry2 FAILED [ 0%] +unittests/test_accel.py::accel_Tests::test_accelFlags FAILED [ 0%] +unittests/test_accel.py::accel_Tests::test_accelNullObj FAILED [ 0%] unittests/test_accel.py::accel_Tests::test_accelTable1 PASSED [ 0%] -unittests/test_accel.py::accel_Tests::test_accelTable2 PASSED [ 0%] -unittests/test_access.py::access_Tests::test_access1 xfail [ 0%] +unittests/test_accel.py::accel_Tests::test_accelTable2 FAILED [ 0%] +unittests/test_access.py::access_Tests::test_access1 FAILED [ 0%] unittests/test_affinematrix2d.py::affinematrix2d_Tests::test_affinematrix2d1 PASSED [ 0%] -unittests/test_animate.py::animate_Tests::test_animate1 PASSED [ 0%] +unittests/test_animate.py::animate_Tests::test_animate1 FAILED [ 0%] unittests/test_animate.py::animate_Tests::test_animate2 PASSED [ 0%] -unittests/test_app.py::App::test_App PASSED [ 0%] -unittests/test_app.py::App::test_App_OnInit PASSED [ 0%] -unittests/test_app.py::App::test_CallAfter PASSED [ 0%] +unittests/test_app.py::App::test_App FAILED [ 0%] +unittests/test_app.py::App::test_App_OnInit FAILED [ 0%] +unittests/test_app.py::App::test_CallAfter FAILED [ 0%] unittests/test_app.py::App::test_PySimpleApp PASSED [ 0%] unittests/test_app.py::App::test_version PASSED [ 1%] -unittests/test_apptrait.py::AppTraitsTests::test_AppTraits PASSED [ 1%] +unittests/test_apptrait.py::AppTraitsTests::test_AppTraits FAILED [ 1%] unittests/test_arrayint.py::ArrayInt::test_ArrayIntTypemapErrors PASSED [ 1%] unittests/test_arrayint.py::ArrayInt::test_ArrayIntTypemaps PASSED [ 1%] unittests/test_arraystring.py::ArrayString::test_ArrayStringTypemapErrors PASSED [ 1%] unittests/test_arraystring.py::ArrayString::test_ArrayStringTypemaps PASSED [ 1%] -unittests/test_artprov.py::artprov_Tests::test_artprovConstants PASSED [ 1%] -unittests/test_artprov.py::artprov_Tests::test_artprovGetBitmap PASSED [ 1%] +unittests/test_artprov.py::artprov_Tests::test_artprovConstants FAILED [ 1%] +unittests/test_artprov.py::artprov_Tests::test_artprovGetBitmap FAILED [ 1%] unittests/test_asserts.py::asserts_Tests::test_asserts1 PASSED [ 1%] -unittests/test_asserts.py::asserts_Tests::test_asserts2 PASSED [ 1%] -unittests/test_asserts.py::asserts_Tests::test_asserts3 PASSED [ 1%] -unittests/test_auibar.py::auibar_Tests::test_auibar01 PASSED [ 1%] +unittests/test_asserts.py::asserts_Tests::test_asserts2 FAILED [ 1%] +unittests/test_asserts.py::asserts_Tests::test_asserts3 FAILED [ 1%] +unittests/test_auibar.py::auibar_Tests::test_auibar01 FAILED [ 1%] unittests/test_auibar.py::auibar_Tests::test_auibar02 PASSED [ 1%] unittests/test_auibar.py::auibar_Tests::test_auibar03 PASSED [ 1%] unittests/test_auibar.py::auibar_Tests::test_auibar04 PASSED [ 1%] -unittests/test_auibar.py::auibar_Tests::test_auibar05 PASSED [ 1%] +unittests/test_auibar.py::auibar_Tests::test_auibar05 FAILED [ 1%] unittests/test_auibar.py::auibar_Tests::test_auibar06 PASSED [ 1%] unittests/test_auibar.py::auibar_Tests::test_auibar07 PASSED [ 2%] -unittests/test_auibar.py::auibar_Tests::test_auibar08 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook01 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook02 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook03 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook04 PASSED [ 2%] +unittests/test_auibar.py::auibar_Tests::test_auibar08 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook01 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook02 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook03 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook04 FAILED [ 2%] unittests/test_auibook.py::auibook_Tests::test_auibook05 PASSED [ 2%] unittests/test_auibook.py::auibook_Tests::test_auibook06 PASSED [ 2%] unittests/test_auibook.py::auibook_Tests::test_auibook07 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook08 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook09 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook10 PASSED [ 2%] -unittests/test_auibook.py::auibook_Tests::test_auibook11 PASSED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook08 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook09 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook10 FAILED [ 2%] +unittests/test_auibook.py::auibook_Tests::test_auibook11 FAILED [ 2%] unittests/test_auidockart.py::auidockart_Tests::test_auidockart01 PASSED [ 2%] -unittests/test_auidockart.py::auidockart_Tests::test_auidockart02 PASSED [ 2%] -unittests/test_auidockart.py::auidockart_Tests::test_auidockart03 PASSED [ 2%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager01 PASSED [ 2%] +unittests/test_auidockart.py::auidockart_Tests::test_auidockart02 FAILED [ 2%] +unittests/test_auidockart.py::auidockart_Tests::test_auidockart03 FAILED [ 2%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager01 FAILED [ 2%] unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager02 PASSED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager03 PASSED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager04 PASSED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager05 PASSED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager06 PASSED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager07 PASSED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager08 PASSED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager03 FAILED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager04 FAILED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager05 FAILED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager06 FAILED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager07 FAILED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager08 FAILED [ 3%] unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager09 PASSED [ 3%] -unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager10 PASSED [ 3%] -unittests/test_auitabmdi.py::auitabmdi_Tests::test_auitabmdi01 PASSED [ 3%] +unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager10 FAILED [ 3%] +unittests/test_auitabmdi.py::auitabmdi_Tests::test_auitabmdi01 FAILED [ 3%] unittests/test_axbase.py::axbase_Tests::test_axbase1 SKIPPED [ 3%] unittests/test_axbase.py::axbase_Tests::test_axbase2 SKIPPED [ 3%] unittests/test_axbase.py::axbase_Tests::test_axbase3 SKIPPED [ 3%] unittests/test_bannerwindow.py::bannerwindow_Tests::test_bannerwindow1 PASSED [ 3%] -unittests/test_bannerwindow.py::bannerwindow_Tests::test_bannerwindow2 PASSED [ 3%] -unittests/test_bitmap.py::BitmapTests::test_BitmapCtor1 PASSED [ 3%] -unittests/test_bitmap.py::BitmapTests::test_BitmapCtor2 PASSED [ 3%] +unittests/test_bannerwindow.py::bannerwindow_Tests::test_bannerwindow2 FAILED [ 3%] +unittests/test_bitmap.py::BitmapTests::test_BitmapCtor1 FAILED [ 3%] +unittests/test_bitmap.py::BitmapTests::test_BitmapCtor2 FAILED [ 3%] unittests/test_bitmap.py::BitmapTests::test_BitmapCtor3 PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_BitmapCtor4 PASSED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_BitmapCtor4 FAILED [ 4%] unittests/test_bitmap.py::BitmapTests::test_BitmapCtor5 PASSED [ 4%] unittests/test_bitmap.py::BitmapTests::test_BitmapCtor6 PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_BitmapMask PASSED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_BitmapMask FAILED [ 4%] unittests/test_bitmap.py::BitmapTests::test_BitmapMaskWithPalette SKIPPED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_BitmapNullBitmap PASSED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_BitmapNullBitmap FAILED [ 4%] unittests/test_bitmap.py::BitmapTests::test_BitmapSetMaskColour PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_Bitmap__nonzero__ PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_EmptyBitmapFactory PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory1 PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory2 PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory3 PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory4 PASSED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_Bitmap__nonzero__ FAILED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_EmptyBitmapFactory FAILED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory1 FAILED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory2 FAILED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory3 FAILED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory4 FAILED [ 4%] unittests/test_bitmap.py::BitmapTests::test_bitmapBufferFactory5 PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer1 PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer2 PASSED [ 4%] -unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer3 PASSED [ 5%] -unittests/test_bitmap.py::BitmapTests::test_bitmapCopyToBuffer1 PASSED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer1 FAILED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer2 FAILED [ 4%] +unittests/test_bitmap.py::BitmapTests::test_bitmapCopyFromBuffer3 FAILED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapCopyToBuffer1 FAILED [ 5%] unittests/test_bitmap.py::BitmapTests::test_bitmapCopyToBuffer2 PASSED [ 5%] -unittests/test_bitmap.py::BitmapTests::test_bitmapCopyToBuffer3 PASSED [ 5%] -unittests/test_bitmap.py::BitmapTests::test_bitmapEmptyFactory1 PASSED [ 5%] -unittests/test_bitmap.py::BitmapTests::test_bitmapEmptyFactory2 PASSED [ 5%] -unittests/test_bitmap.py::BitmapTests::test_bitmapFormatConstants PASSED [ 5%] -unittests/test_bitmap.py::BitmapTests::test_bitmapHandle PASSED [ 5%] -unittests/test_bitmap.py::BitmapTests::test_bitmapSetSize PASSED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapCopyToBuffer3 FAILED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapEmptyFactory1 FAILED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapEmptyFactory2 FAILED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapFormatConstants FAILED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapHandle FAILED [ 5%] +unittests/test_bitmap.py::BitmapTests::test_bitmapSetSize FAILED [ 5%] unittests/test_bmpbuttn.py::BitmapButtonTests::test_BitmapButtonCtor PASSED [ 5%] -unittests/test_bmpbuttn.py::BitmapButtonTests::test_BitmapButtonDefaultCtor PASSED [ 5%] +unittests/test_bmpbuttn.py::BitmapButtonTests::test_BitmapButtonDefaultCtor FAILED [ 5%] unittests/test_bmpcbox.py::bmpcbox_Tests::test_bmpcbox1 PASSED [ 5%] -unittests/test_bmpcbox.py::bmpcbox_Tests::test_bmpcbox2 PASSED [ 5%] +unittests/test_bmpcbox.py::bmpcbox_Tests::test_bmpcbox2 FAILED [ 5%] unittests/test_bookctrl.py::panel_Tests::test_bookctrl1 PASSED [ 5%] -unittests/test_bookctrl.py::panel_Tests::test_bookctrl2 PASSED [ 5%] -unittests/test_brush.py::BrushTests::test_BrushCtors PASSED [ 5%] -unittests/test_brush.py::BrushTests::test_BrushOperators PASSED [ 5%] -unittests/test_brush.py::BrushTests::test_StockBrushesExist PASSED [ 6%] -unittests/test_brush.py::BrushTests::test_StockBrushesInitialized PASSED [ 6%] -unittests/test_brush.py::BrushTests::test_brushOldStyleNames PASSED [ 6%] -unittests/test_brush.py::BrushTests::test_nonzero PASSED [ 6%] -unittests/test_busyinfo.py::busyinfo_Tests::test_busyinfo1 PASSED [ 6%] -unittests/test_busyinfo.py::busyinfo_Tests::test_busyinfo2 PASSED [ 6%] -unittests/test_button.py::ButtonTests::test_ButtonCtors PASSED [ 6%] -unittests/test_button.py::ButtonTests::test_ButtonDefaultCtor PASSED [ 6%] -unittests/test_button.py::ButtonTests::test_ButtonProperties PASSED [ 6%] +unittests/test_bookctrl.py::panel_Tests::test_bookctrl2 FAILED [ 5%] +unittests/test_brush.py::BrushTests::test_BrushCtors FAILED [ 5%] +unittests/test_brush.py::BrushTests::test_BrushOperators FAILED [ 5%] +unittests/test_brush.py::BrushTests::test_StockBrushesExist FAILED [ 6%] +unittests/test_brush.py::BrushTests::test_StockBrushesInitialized FAILED [ 6%] +unittests/test_brush.py::BrushTests::test_brushOldStyleNames FAILED [ 6%] +unittests/test_brush.py::BrushTests::test_nonzero FAILED [ 6%] +unittests/test_busyinfo.py::busyinfo_Tests::test_busyinfo1 FAILED [ 6%] +unittests/test_busyinfo.py::busyinfo_Tests::test_busyinfo2 FAILED [ 6%] +unittests/test_button.py::ButtonTests::test_ButtonCtors FAILED [ 6%] +unittests/test_button.py::ButtonTests::test_ButtonDefaultCtor FAILED [ 6%] +unittests/test_button.py::ButtonTests::test_ButtonProperties FAILED [ 6%] unittests/test_calctrl.py::calctrl_Tests::test_calctrl1 PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_calctrl2 PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_calctrl3 PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_calctrl4 PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_calevt1 PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_calevt2 PASSED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_calctrl2 FAILED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_calctrl3 FAILED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_calctrl4 FAILED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_calevt1 FAILED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_calevt2 FAILED [ 6%] unittests/test_calctrl.py::calctrl_Tests::test_genericcalctrl2 PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_genericcalctrl3 PASSED [ 6%] -unittests/test_calctrl.py::calctrl_Tests::test_genericcalctrl4 PASSED [ 7%] -unittests/test_caret.py::caret_Tests::test_caret1 PASSED [ 7%] -unittests/test_caret.py::caret_Tests::test_caret2 PASSED [ 7%] +unittests/test_calctrl.py::calctrl_Tests::test_genericcalctrl3 FAILED [ 6%] +unittests/test_calctrl.py::calctrl_Tests::test_genericcalctrl4 FAILED [ 7%] +unittests/test_caret.py::caret_Tests::test_caret1 FAILED [ 7%] +unittests/test_caret.py::caret_Tests::test_caret2 FAILED [ 7%] unittests/test_checkbox.py::checkbox_Tests::test_checkboxCtors PASSED [ 7%] -unittests/test_checkbox.py::checkbox_Tests::test_checkboxDefaultCtor PASSED [ 7%] -unittests/test_checklst.py::CheckListBoxTests::test_CheckBoxCtors PASSED [ 7%] +unittests/test_checkbox.py::checkbox_Tests::test_checkboxDefaultCtor FAILED [ 7%] +unittests/test_checklst.py::CheckListBoxTests::test_CheckBoxCtors FAILED [ 7%] unittests/test_checklst.py::CheckListBoxTests::test_CheckListBoxDefaultCtor PASSED [ 7%] -unittests/test_checklst.py::CheckListBoxTests::test_pyMethods1 PASSED [ 7%] -unittests/test_checklst.py::CheckListBoxTests::test_pyMethods2 PASSED [ 7%] -unittests/test_checklst.py::CheckListBoxTests::test_pyProperties PASSED [ 7%] -unittests/test_choicdlg.py::choicdlg_Tests::test_choicdlgMulti PASSED [ 7%] +unittests/test_checklst.py::CheckListBoxTests::test_pyMethods1 FAILED [ 7%] +unittests/test_checklst.py::CheckListBoxTests::test_pyMethods2 FAILED [ 7%] +unittests/test_checklst.py::CheckListBoxTests::test_pyProperties FAILED [ 7%] +unittests/test_choicdlg.py::choicdlg_Tests::test_choicdlgMulti FAILED [ 7%] unittests/test_choicdlg.py::choicdlg_Tests::test_choicdlgSingle PASSED [ 7%] -unittests/test_choicdlg.py::choicdlg_Tests::test_choicdlgSingleFunc PASSED [ 7%] -unittests/test_choice.py::ChoiceTests::test_ChoiceCtors PASSED [ 7%] -unittests/test_choice.py::ChoiceTests::test_ChoiceDefaultCtor PASSED [ 7%] +unittests/test_choicdlg.py::choicdlg_Tests::test_choicdlgSingleFunc FAILED [ 7%] +unittests/test_choice.py::ChoiceTests::test_ChoiceCtors FAILED [ 7%] +unittests/test_choice.py::ChoiceTests::test_ChoiceDefaultCtor FAILED [ 7%] unittests/test_choice.py::ChoiceTests::test_ChoiceProperties PASSED [ 7%] -unittests/test_choicebk.py::choicebk_Tests::test_choicebk1 PASSED [ 7%] +unittests/test_choicebk.py::choicebk_Tests::test_choicebk1 FAILED [ 7%] unittests/test_choicebk.py::choicebk_Tests::test_choicebk2 PASSED [ 7%] -unittests/test_choicebk.py::choicebk_Tests::test_choicebk3 PASSED [ 8%] -unittests/test_choicebk.py::choicebk_Tests::test_choicebk4 PASSED [ 8%] -unittests/test_clipbrd.py::clipbrd_Tests::test_clipbrd1 PASSED [ 8%] +unittests/test_choicebk.py::choicebk_Tests::test_choicebk3 FAILED [ 8%] +unittests/test_choicebk.py::choicebk_Tests::test_choicebk4 FAILED [ 8%] +unittests/test_clipbrd.py::clipbrd_Tests::test_clipbrd1 FAILED [ 8%] unittests/test_clipbrd.py::clipbrd_Tests::test_clpbrd2 PASSED [ 8%] -unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr1 PASSED [ 8%] -unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr2 PASSED [ 8%] +unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr1 FAILED [ 8%] +unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr2 FAILED [ 8%] unittests/test_clntdatactnr.py::clntdatactnr_Tests::test_clntdatactnr3 PASSED [ 8%] -unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc1 PASSED [ 8%] -unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc2 PASSED [ 8%] -unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc3 PASSED [ 8%] -unittests/test_cmndata.py::cmndata_tests::test_PD_PaperSize PASSED [ 8%] +unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc1 FAILED [ 8%] +unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc2 FAILED [ 8%] +unittests/test_cmdproc.py::cmdproc_Tests::test_cmdproc3 FAILED [ 8%] +unittests/test_cmndata.py::cmndata_tests::test_PD_PaperSize FAILED [ 8%] unittests/test_cmndata.py::cmndata_tests::test_cmndataClassConstructors PASSED [ 8%] unittests/test_cmndata.py::cmndata_tests::test_cppMethods PASSED [ 8%] -unittests/test_cmndata.py::cmndata_tests::test_nonzero PASSED [ 8%] +unittests/test_cmndata.py::cmndata_tests::test_nonzero FAILED [ 8%] unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneCtors PASSED [ 8%] -unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneDefaultCtor PASSED [ 8%] -unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneProperties PASSED [ 8%] -unittests/test_colordlg.py::colordlg_Tests::test_colordlg1 PASSED [ 9%] -unittests/test_colordlg.py::colordlg_Tests::test_colordlg2 PASSED [ 9%] -unittests/test_colour.py::Colour::test_ColourTypemaps PASSED [ 9%] -unittests/test_colour.py::Colour::test_GetIM PASSED [ 9%] -unittests/test_colour.py::Colour::test_GetPixel PASSED [ 9%] -unittests/test_colour.py::Colour::test_converters PASSED [ 9%] -unittests/test_colour.py::Colour::test_copy_ctor PASSED [ 9%] -unittests/test_colour.py::Colour::test_default_ctor PASSED [ 9%] -unittests/test_colour.py::Colour::test_numpy_ctor PASSED [ 9%] -unittests/test_colour.py::Colour::test_rgb_ctor PASSED [ 9%] -unittests/test_colour.py::Colour::test_rgba_ctor PASSED [ 9%] -unittests/test_colour.py::Colour::test_seq_ctor1 PASSED [ 9%] -unittests/test_colour.py::Colour::test_seq_ctor2 PASSED [ 9%] +unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneDefaultCtor FAILED [ 8%] +unittests/test_collpane.py::CollapsiblePaneTests::test_CollPaneProperties FAILED [ 8%] +unittests/test_colordlg.py::colordlg_Tests::test_colordlg1 FAILED [ 9%] +unittests/test_colordlg.py::colordlg_Tests::test_colordlg2 FAILED [ 9%] +unittests/test_colour.py::Colour::test_ColourTypemaps FAILED [ 9%] +unittests/test_colour.py::Colour::test_GetIM FAILED [ 9%] +unittests/test_colour.py::Colour::test_GetPixel FAILED [ 9%] +unittests/test_colour.py::Colour::test_converters FAILED [ 9%] +unittests/test_colour.py::Colour::test_copy_ctor FAILED [ 9%] +unittests/test_colour.py::Colour::test_default_ctor FAILED [ 9%] +unittests/test_colour.py::Colour::test_numpy_ctor FAILED [ 9%] +unittests/test_colour.py::Colour::test_rgb_ctor FAILED [ 9%] +unittests/test_colour.py::Colour::test_rgba_ctor FAILED [ 9%] +unittests/test_colour.py::Colour::test_seq_ctor1 FAILED [ 9%] +unittests/test_colour.py::Colour::test_seq_ctor2 FAILED [ 9%] unittests/test_combo.py::combo_Tests::test_combo1 PASSED [ 9%] -unittests/test_combo.py::combo_Tests::test_comboConstants PASSED [ 9%] -unittests/test_combobox.py::ComboBoxTests::test_ComboBoxCtors PASSED [ 9%] +unittests/test_combo.py::combo_Tests::test_comboConstants FAILED [ 9%] +unittests/test_combobox.py::ComboBoxTests::test_ComboBoxCtors FAILED [ 9%] unittests/test_combobox.py::ComboBoxTests::test_ComboBoxDefaultCtor PASSED [ 9%] unittests/test_combobox.py::ComboBoxTests::test_comboboxHasCut PASSED [ 10%] -unittests/test_combobox.py::ComboBoxTests::test_comboboxSetSelection PASSED [ 10%] -unittests/test_combobox.py::ComboBoxTests::test_comboboxTextSelection PASSED [ 10%] +unittests/test_combobox.py::ComboBoxTests::test_comboboxSetSelection FAILED [ 10%] +unittests/test_combobox.py::ComboBoxTests::test_comboboxTextSelection FAILED [ 10%] unittests/test_commandlinkbutton.py::commandlinkbutton_Tests::test_commandlinkbutton1 PASSED [ 10%] -unittests/test_commandlinkbutton.py::commandlinkbutton_Tests::test_commandlinkbutton2 PASSED [ 10%] +unittests/test_commandlinkbutton.py::commandlinkbutton_Tests::test_commandlinkbutton2 FAILED [ 10%] unittests/test_commandlinkbutton.py::commandlinkbutton_Tests::test_commandlinkbutton3 PASSED [ 10%] unittests/test_config.py::ConfigTests::test_Config1 PASSED [ 10%] unittests/test_config.py::ConfigTests::test_Config2 PASSED [ 10%] -unittests/test_config.py::ConfigTests::test_Config3 PASSED [ 10%] -unittests/test_config.py::ConfigTests::test_Config4 PASSED [ 10%] +unittests/test_config.py::ConfigTests::test_Config3 FAILED [ 10%] +unittests/test_config.py::ConfigTests::test_Config4 FAILED [ 10%] unittests/test_config.py::ConfigTests::test_Config5 PASSED [ 10%] unittests/test_config.py::ConfigTests::test_Config6 PASSED [ 10%] -unittests/test_config.py::ConfigTests::test_ConfigEnums PASSED [ 10%] -unittests/test_control.py::ControlTests::test_ControlCtors PASSED [ 10%] -unittests/test_control.py::ControlTests::test_ControlDefaultCtor PASSED [ 10%] -unittests/test_cshelp.py::cshelp_Tests::test_cshelp1 PASSED [ 10%] +unittests/test_config.py::ConfigTests::test_ConfigEnums FAILED [ 10%] +unittests/test_control.py::ControlTests::test_ControlCtors FAILED [ 10%] +unittests/test_control.py::ControlTests::test_ControlDefaultCtor FAILED [ 10%] +unittests/test_cshelp.py::cshelp_Tests::test_cshelp1 FAILED [ 10%] unittests/test_cshelp.py::cshelp_Tests::test_cshelp2 PASSED [ 10%] -unittests/test_cursor.py::CursorTests::test_CursorCtors PASSED [ 11%] +unittests/test_cursor.py::CursorTests::test_CursorCtors FAILED [ 11%] unittests/test_cursor.py::CursorTests::test_CursorStockIDsExist PASSED [ 11%] unittests/test_cursor.py::CursorTests::test_Cursor__nonzero__ PASSED [ 11%] -unittests/test_cursor.py::CursorTests::test_NullCursor PASSED [ 11%] -unittests/test_cursor.py::CursorTests::test_StockCursorsExist PASSED [ 11%] +unittests/test_cursor.py::CursorTests::test_NullCursor FAILED [ 11%] +unittests/test_cursor.py::CursorTests::test_StockCursorsExist FAILED [ 11%] unittests/test_cursor.py::CursorTests::test_StockCursorsInitialized PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_BitmapDataObject PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_CustomDataObject PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataFormat PASSED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_BitmapDataObject FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_CustomDataObject FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_DataFormat FAILED [ 11%] unittests/test_dataobj.py::DataObjTests::test_DataFormatIDsExist PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObject PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObject2 PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObjectComposite PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObjectGetAllFormats PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple1 PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple2 PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple3 PASSED [ 11%] -unittests/test_dataobj.py::DataObjTests::test_FileDataObject PASSED [ 12%] -unittests/test_dataobj.py::DataObjTests::test_HTMLDataObject PASSED [ 12%] -unittests/test_dataobj.py::DataObjTests::test_TextDataObject PASSED [ 12%] -unittests/test_dataobj.py::DataObjTests::test_TextDataObjectClipboard PASSED [ 12%] -unittests/test_dataobj.py::DataObjTests::test_URLDataObject PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewColumn PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewConst PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewCtrl1 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewEvt1 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewEvt2 PASSED [ 12%] +unittests/test_dataobj.py::DataObjTests::test_DataObject FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_DataObject2 FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_DataObjectComposite FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_DataObjectGetAllFormats FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple1 FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple2 FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_DataObjectSimple3 FAILED [ 11%] +unittests/test_dataobj.py::DataObjTests::test_FileDataObject FAILED [ 12%] +unittests/test_dataobj.py::DataObjTests::test_HTMLDataObject FAILED [ 12%] +unittests/test_dataobj.py::DataObjTests::test_TextDataObject FAILED [ 12%] +unittests/test_dataobj.py::DataObjTests::test_TextDataObjectClipboard FAILED [ 12%] +unittests/test_dataobj.py::DataObjTests::test_URLDataObject FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewColumn FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewConst FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewCtrl1 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewEvt1 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewEvt2 FAILED [ 12%] unittests/test_dataview.py::dataview_Tests::test_dataviewHitTest PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewIconText1 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewIconText2 PASSED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewIconText1 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewIconText2 FAILED [ 12%] unittests/test_dataview.py::dataview_Tests::test_dataviewIndexListModel1 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewIndexListModel2 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem1 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem2 PASSED [ 12%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem3 PASSED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewIndexListModel2 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem1 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem2 FAILED [ 12%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem3 FAILED [ 13%] unittests/test_dataview.py::dataview_Tests::test_dataviewItem4 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem5 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem6 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItem7 PASSED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem5 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem6 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItem7 FAILED [ 13%] unittests/test_dataview.py::dataview_Tests::test_dataviewItem8 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItemAttr1 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewItemAttr2 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewListCtrl1 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewListCtrl2 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewModel1 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewModel2 PASSED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItemAttr1 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewItemAttr2 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewListCtrl1 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewListCtrl2 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewModel1 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewModel2 FAILED [ 13%] unittests/test_dataview.py::dataview_Tests::test_dataviewModelNotifier1 PASSED [ 13%] unittests/test_dataview.py::dataview_Tests::test_dataviewModelNotifier2 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer01 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer02 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer03 PASSED [ 13%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer04 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer05 PASSED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer01 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer02 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer03 FAILED [ 13%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer04 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer05 FAILED [ 14%] unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer06 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer07 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer08 PASSED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer07 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer08 FAILED [ 14%] unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer09 PASSED [ 14%] unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer10 PASSED [ 14%] unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer11 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer12 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewTreeCtrl1 PASSED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewRenderer12 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewTreeCtrl1 FAILED [ 14%] unittests/test_dataview.py::dataview_Tests::test_dataviewTreeCtrl2 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewVirtualListModel1 PASSED [ 14%] -unittests/test_dataview.py::dataview_Tests::test_dataviewVirtualModel2 PASSED [ 14%] -unittests/test_datectrl.py::datectrl_Tests::test_datectrl1 PASSED [ 14%] -unittests/test_datectrl.py::datectrl_Tests::test_datectrl2 PASSED [ 14%] -unittests/test_datectrl.py::datectrl_Tests::test_genericdatectrl1 PASSED [ 14%] -unittests/test_datectrl.py::datectrl_Tests::test_genericdatectrl2 PASSED [ 14%] -unittests/test_dateevt.py::dateevt_Tests::test_dateevt1 PASSED [ 15%] +unittests/test_dataview.py::dataview_Tests::test_dataviewVirtualListModel1 FAILED [ 14%] +unittests/test_dataview.py::dataview_Tests::test_dataviewVirtualModel2 FAILED [ 14%] +unittests/test_datectrl.py::datectrl_Tests::test_datectrl1 FAILED [ 14%] +unittests/test_datectrl.py::datectrl_Tests::test_datectrl2 FAILED [ 14%] +unittests/test_datectrl.py::datectrl_Tests::test_genericdatectrl1 FAILED [ 14%] +unittests/test_datectrl.py::datectrl_Tests::test_genericdatectrl2 FAILED [ 14%] +unittests/test_dateevt.py::dateevt_Tests::test_dateevt1 FAILED [ 15%] unittests/test_dateevt.py::dateevt_Tests::test_dateevt2 PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_ConstantsExist PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_DCBrushChanger PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_DCClipper PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_DCFontChanger PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_DCPenChanger PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_DCTextColourChanger PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_FontMetrics PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_NativeGTKHandle PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_NativeHandle PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_NativeMacHandle PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_NativeWinHandle PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_dcContextManager PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_dcFullTextExtents PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_dcPointLists PASSED [ 15%] +unittests/test_dc.py::dc_Tests::test_ConstantsExist FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_DCBrushChanger FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_DCClipper FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_DCFontChanger FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_DCPenChanger FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_DCTextColourChanger FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_FontMetrics FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_NativeGTKHandle FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_NativeHandle FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_NativeMacHandle FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_NativeWinHandle FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_dcContextManager FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_dcFullTextExtents FAILED [ 15%] +unittests/test_dc.py::dc_Tests::test_dcPointLists FAILED [ 15%] unittests/test_dc.py::dc_Tests::test_dcTextExtents PASSED [ 15%] -unittests/test_dc.py::dc_Tests::test_trickyStuff PASSED [ 15%] +unittests/test_dc.py::dc_Tests::test_trickyStuff FAILED [ 15%] unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawElipseLists PASSED [ 16%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawLineLists PASSED [ 16%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPloygonLists PASSED [ 16%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawLineLists FAILED [ 16%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPloygonLists FAILED [ 16%] unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPointArray PASSED [ 16%] -unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPointLists PASSED [ 16%] +unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawPointLists FAILED [ 16%] unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawRectangleArray PASSED [ 16%] unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawRectangleLists PASSED [ 16%] unittests/test_dcDrawLists.py::dcDrawLists_Tests::test_dcDrawTextLists PASSED [ 16%] unittests/test_dcbuffer.py::BufferedDCTests::test_0_CheckKeepReference PASSED [ 16%] -unittests/test_dcbuffer.py::BufferedDCTests::test_AutoBufferedPaintDC PASSED [ 16%] -unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCConstantsExist PASSED [ 16%] -unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCCtors PASSED [ 16%] -unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCDefaultCtor PASSED [ 16%] -unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedPaintDC PASSED [ 16%] -unittests/test_dcclient.py::ClientDCTests::test_ClientDC PASSED [ 16%] +unittests/test_dcbuffer.py::BufferedDCTests::test_AutoBufferedPaintDC FAILED [ 16%] +unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCConstantsExist FAILED [ 16%] +unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCCtors FAILED [ 16%] +unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedDCDefaultCtor FAILED [ 16%] +unittests/test_dcbuffer.py::BufferedDCTests::test_BufferedPaintDC FAILED [ 16%] +unittests/test_dcclient.py::ClientDCTests::test_ClientDC FAILED [ 16%] unittests/test_dcclient.py::ClientDCTests::test_PaintDC PASSED [ 16%] unittests/test_dcclient.py::ClientDCTests::test_WindowDC PASSED [ 16%] -unittests/test_dcgraph.py::dcgraph_tests::test_GCDC1 PASSED [ 17%] -unittests/test_dcgraph.py::dcgraph_tests::test_GCDC2 PASSED [ 17%] +unittests/test_dcgraph.py::dcgraph_tests::test_GCDC1 FAILED [ 17%] +unittests/test_dcgraph.py::dcgraph_tests::test_GCDC2 FAILED [ 17%] unittests/test_dcgraph.py::dcgraph_tests::test_GCDC3 SKIPPED [ 17%] -unittests/test_dcgraph.py::dcgraph_tests::test_GCDC4 PASSED [ 17%] +unittests/test_dcgraph.py::dcgraph_tests::test_GCDC4 FAILED [ 17%] unittests/test_dcmemory.py::MemoryDCTests::test_MemoryDC1 PASSED [ 17%] -unittests/test_dcmemory.py::MemoryDCTests::test_MemoryDC2 PASSED [ 17%] -unittests/test_dcmemory.py::MemoryDCTests::test_MemoryDC3 PASSED [ 17%] -unittests/test_dcmirror.py::MirrorDCTests::test_MirrorDC1 PASSED [ 17%] +unittests/test_dcmemory.py::MemoryDCTests::test_MemoryDC2 FAILED [ 17%] +unittests/test_dcmemory.py::MemoryDCTests::test_MemoryDC3 FAILED [ 17%] +unittests/test_dcmirror.py::MirrorDCTests::test_MirrorDC1 FAILED [ 17%] unittests/test_dcprint.py::dcprint_tests::test_PrinterDC1 SKIPPED [ 17%] unittests/test_dcps.py::dcps_tests::test_PostscriptDC1 PASSED [ 17%] -unittests/test_dcscreen.py::ScreenDCTests::test_ScreenDC1 PASSED [ 17%] -unittests/test_dcsvg.py::SvgDCTests::test_SvgDC1 PASSED [ 17%] -unittests/test_deadobj.py::deadobj_Tests::test_deadobjException PASSED [ 17%] +unittests/test_dcscreen.py::ScreenDCTests::test_ScreenDC1 FAILED [ 17%] +unittests/test_dcsvg.py::SvgDCTests::test_SvgDC1 FAILED [ 17%] +unittests/test_deadobj.py::deadobj_Tests::test_deadobjException FAILED [ 17%] unittests/test_deadobj.py::deadobj_Tests::test_deadobj__nonzero__1 PASSED [ 17%] -unittests/test_deadobj.py::deadobj_Tests::test_deadobj__nonzero__2 PASSED [ 17%] +unittests/test_deadobj.py::deadobj_Tests::test_deadobj__nonzero__2 FAILED [ 17%] unittests/test_debug.py::debug_Tests::test_debug1 PASSED [ 17%] -unittests/test_defs.py::defs_Tests::test_constants1 PASSED [ 17%] -unittests/test_defs.py::defs_Tests::test_constants2 PASSED [ 18%] -unittests/test_dialog.py::dialog_Tests::test_dialog1 PASSED [ 18%] -unittests/test_dialog.py::dialog_Tests::test_dialog2 PASSED [ 18%] -unittests/test_dialog.py::dialog_Tests::test_dialogDefaultCtor PASSED [ 18%] -unittests/test_dialog.py::dialog_Tests::test_dialogTextSizer PASSED [ 18%] -unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlCtor PASSED [ 18%] -unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlDefaultCtor PASSED [ 18%] -unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlFlags PASSED [ 18%] -unittests/test_dirdlg.py::dirdlg_Tests::test_dirdlg PASSED [ 18%] -unittests/test_dnd.py::dnd_Tests::test_dnd1 PASSED [ 18%] -unittests/test_dnd.py::dnd_Tests::test_dndDropSource PASSED [ 18%] +unittests/test_defs.py::defs_Tests::test_constants1 FAILED [ 17%] +unittests/test_defs.py::defs_Tests::test_constants2 FAILED [ 18%] +unittests/test_dialog.py::dialog_Tests::test_dialog1 FAILED [ 18%] +unittests/test_dialog.py::dialog_Tests::test_dialog2 FAILED [ 18%] +unittests/test_dialog.py::dialog_Tests::test_dialogDefaultCtor FAILED [ 18%] +unittests/test_dialog.py::dialog_Tests::test_dialogTextSizer FAILED [ 18%] +unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlCtor FAILED [ 18%] +unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlDefaultCtor FAILED [ 18%] +unittests/test_dirctrl.py::dirctrl_Tests::test_dirctrlFlags FAILED [ 18%] +unittests/test_dirdlg.py::dirdlg_Tests::test_dirdlg FAILED [ 18%] +unittests/test_dnd.py::dnd_Tests::test_dnd1 FAILED [ 18%] +unittests/test_dnd.py::dnd_Tests::test_dndDropSource FAILED [ 18%] unittests/test_dnd.py::dnd_Tests::test_dndDropTarget PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag1 PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag2 PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag3 PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag4 PASSED [ 18%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag1 FAILED [ 18%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag2 FAILED [ 18%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag3 FAILED [ 18%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag4 FAILED [ 18%] unittests/test_dragimag.py::dragimag_Tests::test_dragimag5 PASSED [ 18%] -unittests/test_dragimag.py::dragimag_Tests::test_dragimag6 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag1 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag2 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag3 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag4 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag5 PASSED [ 19%] -unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag6 PASSED [ 19%] -unittests/test_dtor.py::dtor_Tests::test_dtor PASSED [ 19%] -unittests/test_editlbox.py::editlbox_Tests::test_editlbox1 PASSED [ 19%] -unittests/test_editlbox.py::editlbox_Tests::test_editlbox2 PASSED [ 19%] -unittests/test_editlbox.py::editlbox_Tests::test_editlbox3 PASSED [ 19%] -unittests/test_event.py::Events::test_ActivateEvent_ctor PASSED [ 19%] -unittests/test_event.py::Events::test_ChildFocusEvent_ctor PASSED [ 19%] -unittests/test_event.py::Events::test_ClientData1 PASSED [ 19%] -unittests/test_event.py::Events::test_ClientData2 PASSED [ 19%] -unittests/test_event.py::Events::test_ClipboardTextEvent_ctor PASSED [ 19%] -unittests/test_event.py::Events::test_CloseEvent_ctor PASSED [ 19%] -unittests/test_event.py::Events::test_CommandEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_ContextMenuEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_DisplayChangedEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_DropFilesEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_DropFilesEvent_tweaks PASSED [ 20%] -unittests/test_event.py::Events::test_EraseEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_EventCategory PASSED [ 20%] -unittests/test_event.py::Events::test_Event_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_FocusEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_HelpEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_IconizeEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_IdleEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_InitDialogEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_JoystickEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_KeyEvent_GetUnicodeKey PASSED [ 20%] -unittests/test_event.py::Events::test_KeyEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_MaximizeEvent_ctor PASSED [ 20%] -unittests/test_event.py::Events::test_MenuEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_MouseCaptureChangedEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_MouseCaptureLostEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_MouseEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_MoveEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_NavigationKeyEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_NotifyEvent_ctor PASSED [ 21%] +unittests/test_dragimag.py::dragimag_Tests::test_dragimag6 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag1 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag2 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag3 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag4 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag5 FAILED [ 19%] +unittests/test_dragimag.py::dragimag_Tests::test_genericdragimag6 FAILED [ 19%] +unittests/test_dtor.py::dtor_Tests::test_dtor FAILED [ 19%] +unittests/test_editlbox.py::editlbox_Tests::test_editlbox1 FAILED [ 19%] +unittests/test_editlbox.py::editlbox_Tests::test_editlbox2 FAILED [ 19%] +unittests/test_editlbox.py::editlbox_Tests::test_editlbox3 FAILED [ 19%] +unittests/test_event.py::Events::test_ActivateEvent_ctor FAILED [ 19%] +unittests/test_event.py::Events::test_ChildFocusEvent_ctor FAILED [ 19%] +unittests/test_event.py::Events::test_ClientData1 FAILED [ 19%] +unittests/test_event.py::Events::test_ClientData2 FAILED [ 19%] +unittests/test_event.py::Events::test_ClipboardTextEvent_ctor FAILED [ 19%] +unittests/test_event.py::Events::test_CloseEvent_ctor FAILED [ 19%] +unittests/test_event.py::Events::test_CommandEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_ContextMenuEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_DisplayChangedEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_DropFilesEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_DropFilesEvent_tweaks FAILED [ 20%] +unittests/test_event.py::Events::test_EraseEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_EventCategory FAILED [ 20%] +unittests/test_event.py::Events::test_Event_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_FocusEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_HelpEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_IconizeEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_IdleEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_InitDialogEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_JoystickEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_KeyEvent_GetUnicodeKey FAILED [ 20%] +unittests/test_event.py::Events::test_KeyEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_MaximizeEvent_ctor FAILED [ 20%] +unittests/test_event.py::Events::test_MenuEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_MouseCaptureChangedEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_MouseCaptureLostEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_MouseEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_MoveEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_NavigationKeyEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_NotifyEvent_ctor FAILED [ 21%] unittests/test_event.py::Events::test_PaintEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_PaletteChangedEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_QueryNewPaletteEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_ScrollEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_ScrollWinEvent_ctor PASSED [ 21%] +unittests/test_event.py::Events::test_PaletteChangedEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_QueryNewPaletteEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_ScrollEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_ScrollWinEvent_ctor FAILED [ 21%] unittests/test_event.py::Events::test_SetCursorEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_ShowEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_SizeEvent_ctor PASSED [ 21%] -unittests/test_event.py::Events::test_SysColourChangedEvent_ctor PASSED [ 21%] +unittests/test_event.py::Events::test_ShowEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_SizeEvent_ctor FAILED [ 21%] +unittests/test_event.py::Events::test_SysColourChangedEvent_ctor FAILED [ 21%] unittests/test_event.py::Events::test_UpdateUIEvent_ctor PASSED [ 21%] unittests/test_event.py::Events::test_WindowCreateEvent_ctor PASSED [ 22%] -unittests/test_event.py::Events::test_WindowDestroyEvent_ctor PASSED [ 22%] +unittests/test_event.py::Events::test_WindowDestroyEvent_ctor FAILED [ 22%] unittests/test_event.py::Events::test_eventBinding PASSED [ 22%] -unittests/test_event.py::Events::test_eventUnbinding1 PASSED [ 22%] -unittests/test_event.py::Events::test_eventUnbinding2 PASSED [ 22%] -unittests/test_event.py::Events::test_eventUnbinding3 PASSED [ 22%] +unittests/test_event.py::Events::test_eventUnbinding1 FAILED [ 22%] +unittests/test_event.py::Events::test_eventUnbinding2 FAILED [ 22%] +unittests/test_event.py::Events::test_eventUnbinding3 FAILED [ 22%] unittests/test_event.py::Events::test_eventUnbinding4 PASSED [ 22%] -unittests/test_event.py::Events::test_evtHandlerSubclass PASSED [ 22%] -unittests/test_eventfilter.py::eventfilter_Tests::test_EventFilter_ctor PASSED [ 22%] -unittests/test_eventfilter.py::eventfilter_Tests::test_EventFilter_subclass PASSED [ 22%] -unittests/test_fdrepdlg.py::fdrepdlg_Tests::test_fdrepdlgConstants PASSED [ 22%] -unittests/test_fdrepdlg.py::fdrepdlg_Tests::test_fdrepdlgDlg PASSED [ 22%] -unittests/test_filectrl.py::filectrl_Tests::test_filectrl1 PASSED [ 22%] -unittests/test_filectrl.py::filectrl_Tests::test_filectrl2 PASSED [ 22%] -unittests/test_filectrl.py::filectrl_Tests::test_filectrl3 PASSED [ 22%] -unittests/test_filectrl.py::filectrl_Tests::test_filectrl4 PASSED [ 22%] -unittests/test_filectrl.py::filectrl_Tests::test_filectrl5 PASSED [ 22%] -unittests/test_filedlg.py::filedlg_Tests::test_filedlg PASSED [ 23%] -unittests/test_filedlg.py::filedlg_Tests::test_filedlgFlags PASSED [ 23%] -unittests/test_filedlg.py::filedlg_Tests::test_filedlgProperties PASSED [ 23%] -unittests/test_filedlg.py::filedlg_Tests::test_filedlgTweaks PASSED [ 23%] -unittests/test_filehistory.py::filehistory_Tests::test_filehistory1 PASSED [ 23%] -unittests/test_filehistory.py::filehistory_Tests::test_filehistory2 PASSED [ 23%] -unittests/test_filesys.py::filesys_Tests::test_filesys02 PASSED [ 23%] -unittests/test_filesys.py::filesys_Tests::test_filesys03 PASSED [ 23%] -unittests/test_filesys.py::filesys_Tests::test_filesys04 PASSED [ 23%] -unittests/test_filesys.py::filesys_Tests::test_filesysClasses PASSED [ 23%] -unittests/test_filesys.py::filesys_Tests::test_filesysMemoryFSHandler PASSED [ 23%] -unittests/test_font.py::font_Tests::test_font PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontEquality PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontFixedWidth PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontFlags PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontFlagsOld PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontFontinfo1 PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontFontinfo2 PASSED [ 23%] -unittests/test_font.py::font_Tests::test_fontOk PASSED [ 24%] -unittests/test_font.py::font_Tests::test_fontOldStyleNames PASSED [ 24%] -unittests/test_font.py::font_Tests::test_fontProperties PASSED [ 24%] -unittests/test_font.py::font_Tests::test_stockFonts PASSED [ 24%] -unittests/test_fontdlg.py::fontdlg_Tests::test_fontdlg1 PASSED [ 24%] +unittests/test_event.py::Events::test_evtHandlerSubclass FAILED [ 22%] +unittests/test_eventfilter.py::eventfilter_Tests::test_EventFilter_ctor FAILED [ 22%] +unittests/test_eventfilter.py::eventfilter_Tests::test_EventFilter_subclass FAILED [ 22%] +unittests/test_fdrepdlg.py::fdrepdlg_Tests::test_fdrepdlgConstants FAILED [ 22%] +unittests/test_fdrepdlg.py::fdrepdlg_Tests::test_fdrepdlgDlg FAILED [ 22%] +unittests/test_filectrl.py::filectrl_Tests::test_filectrl1 FAILED [ 22%] +unittests/test_filectrl.py::filectrl_Tests::test_filectrl2 FAILED [ 22%] +unittests/test_filectrl.py::filectrl_Tests::test_filectrl3 FAILED [ 22%] +unittests/test_filectrl.py::filectrl_Tests::test_filectrl4 FAILED [ 22%] +unittests/test_filectrl.py::filectrl_Tests::test_filectrl5 FAILED [ 22%] +unittests/test_filedlg.py::filedlg_Tests::test_filedlg FAILED [ 23%] +unittests/test_filedlg.py::filedlg_Tests::test_filedlgFlags FAILED [ 23%] +unittests/test_filedlg.py::filedlg_Tests::test_filedlgProperties FAILED [ 23%] +unittests/test_filedlg.py::filedlg_Tests::test_filedlgTweaks FAILED [ 23%] +unittests/test_filehistory.py::filehistory_Tests::test_filehistory1 FAILED [ 23%] +unittests/test_filehistory.py::filehistory_Tests::test_filehistory2 FAILED [ 23%] +unittests/test_filesys.py::filesys_Tests::test_filesys02 FAILED [ 23%] +unittests/test_filesys.py::filesys_Tests::test_filesys03 FAILED [ 23%] +unittests/test_filesys.py::filesys_Tests::test_filesys04 FAILED [ 23%] +unittests/test_filesys.py::filesys_Tests::test_filesysClasses FAILED [ 23%] +unittests/test_filesys.py::filesys_Tests::test_filesysMemoryFSHandler FAILED [ 23%] +unittests/test_font.py::font_Tests::test_font FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontEquality FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontFixedWidth FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontFlags FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontFlagsOld FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontFontinfo1 FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontFontinfo2 FAILED [ 23%] +unittests/test_font.py::font_Tests::test_fontOk FAILED [ 24%] +unittests/test_font.py::font_Tests::test_fontOldStyleNames FAILED [ 24%] +unittests/test_font.py::font_Tests::test_fontProperties FAILED [ 24%] +unittests/test_font.py::font_Tests::test_stockFonts FAILED [ 24%] +unittests/test_fontdlg.py::fontdlg_Tests::test_fontdlg1 FAILED [ 24%] unittests/test_fontdlg.py::fontdlg_Tests::test_fontdlg2 PASSED [ 24%] unittests/test_fontenum.py::fontenum_Tests::test_fontenum1 PASSED [ 24%] -unittests/test_fontenum.py::fontenum_Tests::test_fontenum2 PASSED [ 24%] -unittests/test_fontenum.py::fontenum_Tests::test_fontenum3 PASSED [ 24%] -unittests/test_fontmap.py::fontmap_Tests::test_fontmap1 PASSED [ 24%] -unittests/test_fontmap.py::fontmap_Tests::test_fontmap2 PASSED [ 24%] -unittests/test_fontmap.py::fontmap_Tests::test_fontmap3 PASSED [ 24%] -unittests/test_fontutil.py::fontutil_Tests::test_fontutil PASSED [ 24%] +unittests/test_fontenum.py::fontenum_Tests::test_fontenum2 FAILED [ 24%] +unittests/test_fontenum.py::fontenum_Tests::test_fontenum3 FAILED [ 24%] +unittests/test_fontmap.py::fontmap_Tests::test_fontmap1 FAILED [ 24%] +unittests/test_fontmap.py::fontmap_Tests::test_fontmap2 FAILED [ 24%] +unittests/test_fontmap.py::fontmap_Tests::test_fontmap3 FAILED [ 24%] +unittests/test_fontutil.py::fontutil_Tests::test_fontutil FAILED [ 24%] unittests/test_fontutil.py::fontutil_Tests::test_fontutilProperties PASSED [ 24%] -unittests/test_frame.py::frame_Tests::test_frameCtors PASSED [ 24%] -unittests/test_frame.py::frame_Tests::test_frameProperties PASSED [ 24%] -unittests/test_frame.py::frame_Tests::test_frameStyles PASSED [ 24%] -unittests/test_frame.py::frame_Tests::test_frameTopLevelTweaks PASSED [ 25%] -unittests/test_fswatcher.py::fswatcher_Tests::test_fswatcher1 PASSED [ 25%] -unittests/test_gauge.py::gauge_Tests::test_gauge PASSED [ 25%] -unittests/test_gauge.py::gauge_Tests::test_gaugeProperties PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_GetIM_position PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_GetIM_span PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos1 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos2 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos3 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos4 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_sizer1 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_sizer2 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_sizer3 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_span1 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_span2 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_span3 PASSED [ 25%] -unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_span4 PASSED [ 25%] +unittests/test_frame.py::frame_Tests::test_frameCtors FAILED [ 24%] +unittests/test_frame.py::frame_Tests::test_frameProperties FAILED [ 24%] +unittests/test_frame.py::frame_Tests::test_frameStyles FAILED [ 24%] +unittests/test_frame.py::frame_Tests::test_frameTopLevelTweaks FAILED [ 25%] +unittests/test_fswatcher.py::fswatcher_Tests::test_fswatcher1 FAILED [ 25%] +unittests/test_gauge.py::gauge_Tests::test_gauge FAILED [ 25%] +unittests/test_gauge.py::gauge_Tests::test_gaugeProperties FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_GetIM_position FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_GetIM_span FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos1 FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos2 FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos3 FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_pos4 FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_sizer1 FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_sizer2 FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_sizer3 FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_span1 FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_span2 FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_span3 FAILED [ 25%] +unittests/test_gbsizer.py::gbsizer_Tests::test_gbsizer_span4 FAILED [ 25%] unittests/test_gdicmn.py::TestPoint::test_DefaultPosition PASSED [ 26%] unittests/test_gdicmn.py::TestPoint::test_FullySpecified PASSED [ 26%] unittests/test_gdicmn.py::TestPoint::test_Get PASSED [ 26%] @@ -11652,7 +11686,7 @@ unittests/test_gdicmn.py::TestRect::test_tlbr_ctor PASSED [ 29%] unittests/test_gdicmn.py::TestRect::test_tlbr_ctor2 PASSED [ 29%] unittests/test_gdicmn.py::TestRect::test_xywh_ctor PASSED [ 29%] -unittests/test_gdicmn.py::intersectRect_Tests::test_intersectRect01 PASSED [ 29%] +unittests/test_gdicmn.py::intersectRect_Tests::test_intersectRect01 FAILED [ 29%] unittests/test_gdicmn.py::intersectRect_Tests::test_intersectRect02 PASSED [ 29%] unittests/test_geometry.py::Point2D::test_GetIM PASSED [ 29%] unittests/test_geometry.py::Point2D::test_copy_ctor PASSED [ 29%] @@ -11662,316 +11696,115642 @@ unittests/test_geometry.py::Rect2D::test_copy_ctor PASSED [ 29%] unittests/test_geometry.py::Rect2D::test_default_ctor PASSED [ 29%] unittests/test_geometry.py::Rect2D::test_xywh_ctor PASSED [ 29%] -unittests/test_graphics.py::graphics_Tests::test_gcCreate1 PASSED [ 29%] -unittests/test_graphics.py::graphics_Tests::test_gcCreate2 PASSED [ 29%] +unittests/test_graphics.py::graphics_Tests::test_gcCreate1 FAILED [ 29%] +unittests/test_graphics.py::graphics_Tests::test_gcCreate2 FAILED [ 29%] unittests/test_graphics.py::graphics_Tests::test_gcCreate3 PASSED [ 29%] unittests/test_graphics.py::graphics_Tests::test_gcCreate4 FAILED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcCreateBitmap PASSED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcCreateBitmap FAILED [ 30%] unittests/test_graphics.py::graphics_Tests::test_gcCreateBrush PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcCreateFont PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcCreateMatrix PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcCreatePath PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcCreatePen PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcDrawLines PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcGradientStops PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcNullObjects PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcStrokeLines1 PASSED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcCreateFont FAILED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcCreateMatrix FAILED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcCreatePath FAILED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcCreatePen FAILED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcDrawLines FAILED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcGradientStops FAILED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcNullObjects FAILED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcStrokeLines1 FAILED [ 30%] unittests/test_graphics.py::graphics_Tests::test_gcStrokeLines2 PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcStrokeLines3 PASSED [ 30%] -unittests/test_graphics.py::graphics_Tests::test_gcTextExtents PASSED [ 30%] -unittests/test_grid.py::grid_Tests::test_GetIM PASSED [ 30%] -unittests/test_grid.py::grid_Tests::test_grid00 PASSED [ 30%] -unittests/test_grid.py::grid_Tests::test_grid01 PASSED [ 30%] -unittests/test_grid.py::grid_Tests::test_grid02 PASSED [ 30%] -unittests/test_grid.py::grid_Tests::test_grid03 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid04 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid05 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid06 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid07 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid08 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid09 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid10 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid11 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid12 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid13 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid14 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid15 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid16 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid17 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid17a PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid18 PASSED [ 31%] -unittests/test_grid.py::grid_Tests::test_grid18a PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid19 PASSED [ 32%] +unittests/test_graphics.py::graphics_Tests::test_gcStrokeLines3 FAILED [ 30%] +unittests/test_graphics.py::graphics_Tests::test_gcTextExtents FAILED [ 30%] +unittests/test_grid.py::grid_Tests::test_GetIM FAILED [ 30%] +unittests/test_grid.py::grid_Tests::test_grid00 FAILED [ 30%] +unittests/test_grid.py::grid_Tests::test_grid01 FAILED [ 30%] +unittests/test_grid.py::grid_Tests::test_grid02 FAILED [ 30%] +unittests/test_grid.py::grid_Tests::test_grid03 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid04 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid05 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid06 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid07 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid08 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid09 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid10 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid11 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid12 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid13 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid14 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid15 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid16 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid17 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid17a FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid18 FAILED [ 31%] +unittests/test_grid.py::grid_Tests::test_grid18a FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid19 FAILED [ 32%] unittests/test_grid.py::grid_Tests::test_grid20 PASSED [ 32%] unittests/test_grid.py::grid_Tests::test_grid21 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid22 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid23 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid24 PASSED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid22 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid23 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid24 FAILED [ 32%] unittests/test_grid.py::grid_Tests::test_grid25 PASSED [ 32%] unittests/test_grid.py::grid_Tests::test_grid26 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid27 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid28 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid29 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid30 PASSED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid27 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid28 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid29 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid30 FAILED [ 32%] unittests/test_grid.py::grid_Tests::test_grid31 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid32 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid33 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid34 PASSED [ 32%] -unittests/test_grid.py::grid_Tests::test_grid35 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid36 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid37 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid38 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid39 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid40 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid41 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid42 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid43 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid44 PASSED [ 33%] -unittests/test_grid.py::grid_Tests::test_grid45 PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolAbsClass1 PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolAbsClass2 PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolConstants PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolCtor1 PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolCtor2 PASSED [ 33%] -unittests/test_headercol.py::headercol_Tests::test_headercolProperties PASSED [ 33%] -unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl1 PASSED [ 34%] -unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl2 PASSED [ 34%] -unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl3 PASSED [ 34%] -unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl4 PASSED [ 34%] -unittests/test_help.py::help_Tests::test_help1 PASSED [ 34%] +unittests/test_grid.py::grid_Tests::test_grid32 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid33 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid34 FAILED [ 32%] +unittests/test_grid.py::grid_Tests::test_grid35 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid36 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid37 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid38 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid39 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid40 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid41 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid42 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid43 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid44 FAILED [ 33%] +unittests/test_grid.py::grid_Tests::test_grid45 FAILED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolAbsClass1 FAILED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolAbsClass2 FAILED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolConstants FAILED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolCtor1 FAILED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolCtor2 FAILED [ 33%] +unittests/test_headercol.py::headercol_Tests::test_headercolProperties FAILED [ 33%] +unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl1 FAILED [ 34%] +unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl2 FAILED [ 34%] +unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl3 FAILED [ 34%] +unittests/test_headerctrl.py::headerctrl_Tests::test_headerctrl4 FAILED [ 34%] +unittests/test_help.py::help_Tests::test_help1 FAILED [ 34%] unittests/test_helpctrl.py::helpctrl_Tests::test_helpctrl1 PASSED [ 34%] -unittests/test_helpdata.py::helpdata_Tests::test_helpdata1 PASSED [ 34%] -unittests/test_helpdata.py::helpdata_Tests::test_helpdata2 PASSED [ 34%] -unittests/test_helpdata.py::helpdata_Tests::test_helpdata3 PASSED [ 34%] +unittests/test_helpdata.py::helpdata_Tests::test_helpdata1 FAILED [ 34%] +unittests/test_helpdata.py::helpdata_Tests::test_helpdata2 FAILED [ 34%] +unittests/test_helpdata.py::helpdata_Tests::test_helpdata3 FAILED [ 34%] unittests/test_helpdata.py::helpdata_Tests::test_helpdata4 PASSED [ 34%] unittests/test_helpdlg.py::helpdlg_Tests::test_helpdlg1 PASSED [ 34%] -unittests/test_helpext.py::helpext_Tests::test_helpext1 PASSED [ 34%] -unittests/test_helpfrm.py::helpfrm_Tests::test_helpfrm1 PASSED [ 34%] +unittests/test_helpext.py::helpext_Tests::test_helpext1 FAILED [ 34%] +unittests/test_helpfrm.py::helpfrm_Tests::test_helpfrm1 FAILED [ 34%] unittests/test_helpwnd.py::helpwnd_Tests::test_helpwnd1 PASSED [ 34%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell1 PASSED [ 34%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell2 PASSED [ 34%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell3 PASSED [ 34%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell4 PASSED [ 35%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell5 PASSED [ 35%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell6 PASSED [ 35%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell7 PASSED [ 35%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell8 PASSED [ 35%] -unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell9 PASSED [ 35%] -unittests/test_htmldefs.py::htmldefs_Tests::test_htmldefs1 PASSED [ 35%] -unittests/test_htmllbox.py::htmllbox_Tests::test_htmllbox1 PASSED [ 35%] -unittests/test_htmllbox.py::htmllbox_Tests::test_htmllbox2 PASSED [ 35%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell1 FAILED [ 34%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell2 FAILED [ 34%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell3 FAILED [ 34%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell4 FAILED [ 35%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell5 FAILED [ 35%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell6 FAILED [ 35%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell7 FAILED [ 35%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell8 FAILED [ 35%] +unittests/test_htmlcell.py::htmlcell_Tests::test_htmlcell9 FAILED [ 35%] +unittests/test_htmldefs.py::htmldefs_Tests::test_htmldefs1 FAILED [ 35%] +unittests/test_htmllbox.py::htmllbox_Tests::test_htmllbox1 FAILED [ 35%] +unittests/test_htmllbox.py::htmllbox_Tests::test_htmllbox2 FAILED [ 35%] unittests/test_htmllbox.py::htmllbox_Tests::test_htmllbox3 PASSED [ 35%] -unittests/test_htmlpars.py::htmlpars_Tests::test_htmlpars1 PASSED [ 35%] -unittests/test_htmlprint.py::htmlprint_Tests::test_htmlprint1 PASSED [ 35%] -unittests/test_htmlprint.py::htmlprint_Tests::test_htmlprint2 PASSED [ 35%] -unittests/test_htmlprint.py::htmlprint_Tests::test_htmlprint3 PASSED [ 35%] -unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin1 PASSED [ 35%] -unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin2 PASSED [ 35%] -unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin3 PASSED [ 35%] +unittests/test_htmlpars.py::htmlpars_Tests::test_htmlpars1 FAILED [ 35%] +unittests/test_htmlprint.py::htmlprint_Tests::test_htmlprint1 FAILED [ 35%] +unittests/test_htmlprint.py::htmlprint_Tests::test_htmlprint2 FAILED [ 35%] +unittests/test_htmlprint.py::htmlprint_Tests::test_htmlprint3 FAILED [ 35%] +unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin1 FAILED [ 35%] +unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin2 FAILED [ 35%] +unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin3 FAILED [ 35%] unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin4 PASSED [ 36%] -unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin5 PASSED [ 36%] -unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin6 PASSED [ 36%] -unittests/test_htmlwinpars.py::htmlwinpars_Tests::test_htmlwinpars1 PASSED [ 36%] -unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink1 PASSED [ 36%] -unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink2 PASSED [ 36%] -unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink3 PASSED [ 36%] -unittests/test_icon.py::icon_Tests::test_icon1 PASSED [ 36%] -unittests/test_icon.py::icon_Tests::test_icon2 PASSED [ 36%] +unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin5 FAILED [ 36%] +unittests/test_htmlwin.py::htmlwin_Tests::test_htmlwin6 FAILED [ 36%] +unittests/test_htmlwinpars.py::htmlwinpars_Tests::test_htmlwinpars1 FAILED [ 36%] +unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink1 FAILED [ 36%] +unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink2 FAILED [ 36%] +unittests/test_hyperlink.py::hyperlink_Tests::test_hyperlink3 FAILED [ 36%] +unittests/test_icon.py::icon_Tests::test_icon1 FAILED [ 36%] +unittests/test_icon.py::icon_Tests::test_icon2 FAILED [ 36%] unittests/test_icon.py::icon_Tests::test_icon3 PASSED [ 36%] -unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl1 PASSED [ 36%] -unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl2 PASSED [ 36%] -unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl3 PASSED [ 36%] +unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl1 FAILED [ 36%] +unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl2 FAILED [ 36%] +unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl3 FAILED [ 36%] unittests/test_iconbndl.py::iconbndl_Tests::test_iconbndl4 PASSED [ 36%] -unittests/test_iconloc.py::iconloc_Tests::test_iconloc1 PASSED [ 36%] -unittests/test_iconloc.py::iconloc_Tests::test_iconloc2 PASSED [ 36%] -unittests/test_image.py::image_Tests::test_imageCtor1 PASSED [ 36%] -unittests/test_image.py::image_Tests::test_imageCtor2 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor3 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor4 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor4b PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor4c PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor5 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor5b PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor6 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor7 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor8 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageCtor9 PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageGetAlpha PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageGetAlphaDataBuffer PASSED [ 37%] +unittests/test_iconloc.py::iconloc_Tests::test_iconloc1 FAILED [ 36%] +unittests/test_iconloc.py::iconloc_Tests::test_iconloc2 FAILED [ 36%] +unittests/test_image.py::image_Tests::test_imageCtor1 FAILED [ 36%] +unittests/test_image.py::image_Tests::test_imageCtor2 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor3 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor4 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor4b FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor4c FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor5 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor5b FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor6 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor7 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor8 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageCtor9 FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageGetAlpha FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageGetAlphaDataBuffer FAILED [ 37%] unittests/test_image.py::image_Tests::test_imageGetData PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageGetDataBuffer PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageHandlerDerivation PASSED [ 37%] -unittests/test_image.py::image_Tests::test_imageHandlerStandardDerivations PASSED [ 37%] +unittests/test_image.py::image_Tests::test_imageGetDataBuffer FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageHandlerDerivation FAILED [ 37%] +unittests/test_image.py::image_Tests::test_imageHandlerStandardDerivations FAILED [ 37%] unittests/test_image.py::image_Tests::test_imageHandlerStandardDerivationsDerivation PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageMethodChain PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageNestedClasses PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageOtherStuff PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageProperties PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageRGBHSV PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageSetAlpha1 PASSED [ 38%] +unittests/test_image.py::image_Tests::test_imageMethodChain FAILED [ 38%] +unittests/test_image.py::image_Tests::test_imageNestedClasses FAILED [ 38%] +unittests/test_image.py::image_Tests::test_imageOtherStuff FAILED [ 38%] +unittests/test_image.py::image_Tests::test_imageProperties FAILED [ 38%] +unittests/test_image.py::image_Tests::test_imageRGBHSV FAILED [ 38%] +unittests/test_image.py::image_Tests::test_imageSetAlpha1 FAILED [ 38%] unittests/test_image.py::image_Tests::test_imageSetAlphaBuffer PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageSetData1 PASSED [ 38%] +unittests/test_image.py::image_Tests::test_imageSetData1 FAILED [ 38%] unittests/test_image.py::image_Tests::test_imageSetData2 PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageSetDataBuffer1 PASSED [ 38%] -unittests/test_image.py::image_Tests::test_imageSetDataBuffer2 PASSED [ 38%] -unittests/test_imaglist.py::image_Tests::test_imaglist PASSED [ 38%] -unittests/test_imaglist.py::image_Tests::test_imaglistConstants PASSED [ 38%] -unittests/test_infobar.py::infobar_Tests::test_infobar1 PASSED [ 38%] -unittests/test_infobar.py::infobar_Tests::test_infobar2 PASSED [ 38%] -unittests/test_infobar.py::infobar_Tests::test_infobarCtor PASSED [ 38%] +unittests/test_image.py::image_Tests::test_imageSetDataBuffer1 FAILED [ 38%] +unittests/test_image.py::image_Tests::test_imageSetDataBuffer2 FAILED [ 38%] +unittests/test_imaglist.py::image_Tests::test_imaglist FAILED [ 38%] +unittests/test_imaglist.py::image_Tests::test_imaglistConstants FAILED [ 38%] +unittests/test_infobar.py::infobar_Tests::test_infobar1 FAILED [ 38%] +unittests/test_infobar.py::infobar_Tests::test_infobar2 FAILED [ 38%] +unittests/test_infobar.py::infobar_Tests::test_infobarCtor FAILED [ 38%] unittests/test_infobar.py::infobar_Tests::test_infobarDefaultCtor PASSED [ 38%] unittests/test_intl.py::intl_Tests::test_intlConstants PASSED [ 39%] unittests/test_intl.py::intl_Tests::test_intlGetLocaleFunc PASSED [ 39%] -unittests/test_intl.py::intl_Tests::test_intlGetString PASSED [ 39%] -unittests/test_intl.py::intl_Tests::test_intlLanguageInfo PASSED [ 39%] -unittests/test_intl.py::intl_Tests::test_intlLocale PASSED [ 39%] +unittests/test_intl.py::intl_Tests::test_intlGetString FAILED [ 39%] +unittests/test_intl.py::intl_Tests::test_intlLanguageInfo FAILED [ 39%] +unittests/test_intl.py::intl_Tests::test_intlLocale FAILED [ 39%] unittests/test_joystick.py::joystick_Tests::test_joystick1 PASSED [ 39%] unittests/test_joystick.py::joystick_Tests::test_joystick2 PASSED [ 39%] unittests/test_kbdstate.py::KeyboardState::test_KeyboardState PASSED [ 39%] -unittests/test_layout.py::layout_Tests::test_layout PASSED [ 39%] -unittests/test_laywin.py::laywin_Tests::test_laywin1 PASSED [ 39%] -unittests/test_laywin.py::laywin_Tests::test_laywin2 PASSED [ 39%] -unittests/test_laywin.py::laywin_Tests::test_laywin3 PASSED [ 39%] -unittests/test_laywin.py::laywin_Tests::test_laywin4 PASSED [ 39%] -unittests/test_laywin.py::laywin_Tests::test_laywin5 PASSED [ 39%] -unittests/test_lib_agw_advancedsplash.py::lib_agw_advancedsplash_Tests::test_lib_agw_advancedsplashConstantsExist PASSED [ 39%] -unittests/test_lib_agw_advancedsplash.py::lib_agw_advancedsplash_Tests::test_lib_agw_advancedsplashCtor PASSED [ 39%] -unittests/test_lib_agw_aquabutton.py::lib_agw_aquabutton_Tests::test_lib_agw_aquabuttonCtor PASSED [ 39%] -unittests/test_lib_agw_aquabutton.py::lib_agw_aquabutton_Tests::test_lib_agw_aquabuttonMethods PASSED [ 40%] -unittests/test_lib_agw_aui.py::lib_agw_aui_Tests::test_lib_agw_auiCtor PASSED [ 40%] +unittests/test_layout.py::layout_Tests::test_layout FAILED [ 39%] +unittests/test_laywin.py::laywin_Tests::test_laywin1 FAILED [ 39%] +unittests/test_laywin.py::laywin_Tests::test_laywin2 FAILED [ 39%] +unittests/test_laywin.py::laywin_Tests::test_laywin3 FAILED [ 39%] +unittests/test_laywin.py::laywin_Tests::test_laywin4 FAILED [ 39%] +unittests/test_laywin.py::laywin_Tests::test_laywin5 FAILED [ 39%] +unittests/test_lib_agw_advancedsplash.py::lib_agw_advancedsplash_Tests::test_lib_agw_advancedsplashConstantsExist FAILED [ 39%] +unittests/test_lib_agw_advancedsplash.py::lib_agw_advancedsplash_Tests::test_lib_agw_advancedsplashCtor FAILED [ 39%] +unittests/test_lib_agw_aquabutton.py::lib_agw_aquabutton_Tests::test_lib_agw_aquabuttonCtor FAILED [ 39%] +unittests/test_lib_agw_aquabutton.py::lib_agw_aquabutton_Tests::test_lib_agw_aquabuttonMethods FAILED [ 40%] +unittests/test_lib_agw_aui.py::lib_agw_aui_Tests::test_lib_agw_auiCtor FAILED [ 40%] unittests/test_lib_agw_aui.py::lib_agw_aui_additional_Tests::test_lib_agw_auiConstantsExist PASSED [ 40%] -unittests/test_lib_agw_aui.py::lib_agw_aui_additional_Tests::test_lib_agw_auiEvents PASSED [ 40%] -unittests/test_lib_agw_aui.py::lib_agw_aui_additional_Tests::test_lib_agw_aui_ToolbarCtor PASSED [ 40%] -unittests/test_lib_agw_aui_dockart.py::lib_agw_aui_dockart_Tests::test_lib_agw_aui_dockartCtor PASSED [ 40%] -unittests/test_lib_agw_aui_tabart.py::lib_agw_aui_tabart_Tests::test_lib_agw_aui_tabartCtor PASSED [ 40%] -unittests/test_lib_agw_aui_utilities.py::lib_agw_aui_utilities_Tests::test_lib_agw_aui_utilititiesCtor PASSED [ 40%] -unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipConstantsExist PASSED [ 40%] -unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipCtor PASSED [ 40%] -unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipMethods PASSED [ 40%] -unittests/test_lib_agw_buttonpanel.py::lib_agw_buttonpanel_Tests::test_lib_agw_buttonpanelConstantsExist PASSED [ 40%] -unittests/test_lib_agw_buttonpanel.py::lib_agw_buttonpanel_Tests::test_lib_agw_buttonpanelCtor PASSED [ 40%] -unittests/test_lib_agw_buttonpanel.py::lib_agw_buttonpanel_Tests::test_lib_agw_buttonpanelMethods PASSED [ 40%] +unittests/test_lib_agw_aui.py::lib_agw_aui_additional_Tests::test_lib_agw_auiEvents FAILED [ 40%] +unittests/test_lib_agw_aui.py::lib_agw_aui_additional_Tests::test_lib_agw_aui_ToolbarCtor FAILED [ 40%] +unittests/test_lib_agw_aui_dockart.py::lib_agw_aui_dockart_Tests::test_lib_agw_aui_dockartCtor FAILED [ 40%] +unittests/test_lib_agw_aui_tabart.py::lib_agw_aui_tabart_Tests::test_lib_agw_aui_tabartCtor FAILED [ 40%] +unittests/test_lib_agw_aui_utilities.py::lib_agw_aui_utilities_Tests::test_lib_agw_aui_utilititiesCtor FAILED [ 40%] +unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipConstantsExist FAILED [ 40%] +unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipCtor FAILED [ 40%] +unittests/test_lib_agw_balloontip.py::lib_agw_balloontip_Tests::test_lib_agw_balloontipMethods FAILED [ 40%] +unittests/test_lib_agw_buttonpanel.py::lib_agw_buttonpanel_Tests::test_lib_agw_buttonpanelConstantsExist FAILED [ 40%] +unittests/test_lib_agw_buttonpanel.py::lib_agw_buttonpanel_Tests::test_lib_agw_buttonpanelCtor FAILED [ 40%] +unittests/test_lib_agw_buttonpanel.py::lib_agw_buttonpanel_Tests::test_lib_agw_buttonpanelMethods FAILED [ 40%] unittests/test_lib_agw_cubecolourdialog.py::lib_agw_cubecolourdialog_Tests::test_lib_agw_cubecolourdialogConstantsExist PASSED [ 40%] unittests/test_lib_agw_cubecolourdialog.py::lib_agw_cubecolourdialog_Tests::test_lib_agw_cubecolourdialogCtor PASSED [ 40%] -unittests/test_lib_agw_cubecolourdialog.py::lib_agw_cubecolourdialog_Tests::test_lib_agw_cubecolourdialogMethods PASSED [ 40%] +unittests/test_lib_agw_cubecolourdialog.py::lib_agw_cubecolourdialog_Tests::test_lib_agw_cubecolourdialogMethods FAILED [ 40%] unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlConstantsExist PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlCtor PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlEventsExist PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlGetSelections PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlItemCheck PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlSetWindow PASSED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlCtor FAILED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlEventsExist FAILED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlGetSelections FAILED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlItemCheck FAILED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlSetWindow FAILED [ 41%] unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlTreeItem PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlTreeItemData PASSED [ 41%] -unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlTreeItemPyData PASSED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlTreeItemData FAILED [ 41%] +unittests/test_lib_agw_customtreectrl.py::lib_agw_customtreectrl_Tests::test_lib_agw_customtreectrlTreeItemPyData FAILED [ 41%] unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuConstantsExist PASSED [ 41%] -unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuCtor PASSED [ 41%] +unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuCtor FAILED [ 41%] unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuEvents PASSED [ 41%] unittests/test_lib_agw_flatmenu.py::lib_agw_flatmenu_Tests::test_lib_agw_flatmenuOpen PASSED [ 41%] unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookConstantsExist PASSED [ 41%] -unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookCtor PASSED [ 41%] -unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookDeletePages PASSED [ 41%] +unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookCtor FAILED [ 41%] +unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookDeletePages FAILED [ 41%] unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookEvents PASSED [ 41%] -unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookMethods PASSED [ 42%] +unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookMethods FAILED [ 42%] unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookPages PASSED [ 42%] -unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookTabStyles PASSED [ 42%] -unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinConstantsExist PASSED [ 42%] -unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinCtor PASSED [ 42%] -unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinEvents PASSED [ 42%] +unittests/test_lib_agw_flatnotebook.py::lib_agw_flatnotebook_Tests::test_lib_agw_flatnotebookTabStyles FAILED [ 42%] +unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinConstantsExist FAILED [ 42%] +unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinCtor FAILED [ 42%] +unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinEvents FAILED [ 42%] unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspinMethods PASSED [ 42%] -unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspin_fixedpoint PASSED [ 42%] +unittests/test_lib_agw_floatspin.py::lib_agw_floatspin_Tests::test_lib_agw_floatspin_fixedpoint FAILED [ 42%] unittests/test_lib_agw_fmcustomizedlg.py::lib_agw_fmcustomizedlg_Tests::test_lib_agw_fmcustomizedlgCtor PASSED [ 42%] -unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarConstantsExist PASSED [ 42%] -unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarCtor PASSED [ 42%] +unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarConstantsExist FAILED [ 42%] +unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarCtor FAILED [ 42%] unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarEvents PASSED [ 42%] -unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarMethods PASSED [ 42%] -unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterConstantsExist PASSED [ 42%] -unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterCtor PASSED [ 42%] -unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterEvents PASSED [ 42%] -unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterMethods PASSED [ 42%] +unittests/test_lib_agw_foldpanelbar.py::lib_agw_foldpanelbar_Tests::test_lib_agw_foldpanelbarMethods FAILED [ 42%] +unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterConstantsExist FAILED [ 42%] +unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterCtor FAILED [ 42%] +unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterEvents FAILED [ 42%] +unittests/test_lib_agw_fourwaysplitter.py::lib_agw_fourwaysplitter_Tests::test_lib_agw_fourwaysplitterMethods FAILED [ 42%] unittests/test_lib_agw_genericmessagedialog.py::lib_agw_genericmessagedialog_Tests::test_lib_agw_genericmessagedialogConstantsExist PASSED [ 43%] unittests/test_lib_agw_genericmessagedialog.py::lib_agw_genericmessagedialog_Tests::test_lib_agw_genericmessagedialogCtor PASSED [ 43%] -unittests/test_lib_agw_genericmessagedialog.py::lib_agw_genericmessagedialog_Tests::test_lib_agw_genericmessagedialogMethods PASSED [ 43%] -unittests/test_lib_agw_gradientbutton.py::lib_agw_gradientbutton_Tests::test_lib_agw_gradientbuttonCtor PASSED [ 43%] -unittests/test_lib_agw_gradientbutton.py::lib_agw_gradientbutton_Tests::test_lib_agw_gradientbuttonMethods PASSED [ 43%] -unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkCtor PASSED [ 43%] -unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkEvents PASSED [ 43%] -unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkMethods PASSED [ 43%] +unittests/test_lib_agw_genericmessagedialog.py::lib_agw_genericmessagedialog_Tests::test_lib_agw_genericmessagedialogMethods FAILED [ 43%] +unittests/test_lib_agw_gradientbutton.py::lib_agw_gradientbutton_Tests::test_lib_agw_gradientbuttonCtor FAILED [ 43%] +unittests/test_lib_agw_gradientbutton.py::lib_agw_gradientbutton_Tests::test_lib_agw_gradientbuttonMethods FAILED [ 43%] +unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkCtor FAILED [ 43%] +unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkEvents FAILED [ 43%] +unittests/test_lib_agw_hyperlink.py::lib_agw_hyperlink_Tests::test_lib_agw_hyperlinkMethods FAILED [ 43%] unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistColumns PASSED [ 43%] unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistConstantsExist PASSED [ 43%] -unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistCtor PASSED [ 43%] -unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistEvents PASSED [ 43%] -unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistTreeItem PASSED [ 43%] -unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobar1 PASSED [ 43%] -unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobar2 PASSED [ 43%] -unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobarCtor PASSED [ 43%] -unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlConstantsExist PASSED [ 43%] +unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistCtor FAILED [ 43%] +unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistEvents FAILED [ 43%] +unittests/test_lib_agw_hypertreelist.py::lib_agw_hypertreelist_Tests::test_lib_agw_hypertreelistTreeItem FAILED [ 43%] +unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobar1 FAILED [ 43%] +unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobar2 FAILED [ 43%] +unittests/test_lib_agw_infobar.py::lib_agw_infobar_Tests::test_lib_agw_infobarCtor FAILED [ 43%] +unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlConstantsExist FAILED [ 43%] unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlCtor PASSED [ 44%] -unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlEvents PASSED [ 44%] -unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlMethods PASSED [ 44%] -unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookConstantsExist PASSED [ 44%] -unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookCtor PASSED [ 44%] -unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookDeletePages PASSED [ 44%] -unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookEvents PASSED [ 44%] -unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookPages PASSED [ 44%] -unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookTabPosition PASSED [ 44%] -unittests/test_lib_agw_multidirdialog.py::lib_agw_multidirdialog_Tests::test_lib_agw_multidirdialogConstantsExist PASSED [ 44%] -unittests/test_lib_agw_multidirdialog.py::lib_agw_multidirdialog_Tests::test_lib_agw_multidirdialogCtor PASSED [ 44%] -unittests/test_lib_agw_multidirdialog.py::lib_agw_multidirdialog_Tests::test_lib_agw_multidirdialogMethods PASSED [ 44%] -unittests/test_lib_agw_peakmeter.py::lib_agw_peakmeter_Tests::test_lib_agw_peakmeterConstantsExist PASSED [ 44%] -unittests/test_lib_agw_peakmeter.py::lib_agw_peakmeter_Tests::test_lib_agw_peakmeterCtor PASSED [ 44%] -unittests/test_lib_agw_peakmeter.py::lib_agw_peakmeter_Tests::test_lib_agw_peakmeterMethods PASSED [ 44%] -unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerConstantsExist PASSED [ 44%] -unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerCtor PASSED [ 44%] -unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerPersistValue PASSED [ 45%] -unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerRestore PASSED [ 45%] -unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerZZZZCleanup PASSED [ 45%] -unittests/test_lib_agw_piectrl.py::lib_agw_piectrl_Tests::test_lib_agw_piectrlCtor PASSED [ 45%] -INTERNALERROR> Traceback (most recent call last): -INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/main.py", line 184, in wrap_session -INTERNALERROR> session.exitstatus = doit(config, session) or 0 -INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/main.py", line 224, in _main -INTERNALERROR> config.hook.pytest_runtestloop(session=session) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/hooks.py", line 284, in __call__ -INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 67, in _hookexec -INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 61, in -INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in _multicall -INTERNALERROR> return outcome.get_result() -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result -INTERNALERROR> raise ex[1].with_traceback(ex[2]) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in _multicall -INTERNALERROR> res = hook_impl.function(*args) -INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/main.py", line 245, in pytest_runtestloop -INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/hooks.py", line 284, in __call__ -INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 67, in _hookexec -INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 61, in -INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in _multicall -INTERNALERROR> return outcome.get_result() -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result -INTERNALERROR> raise ex[1].with_traceback(ex[2]) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in _multicall -INTERNALERROR> res = hook_impl.function(*args) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pytest_forked/__init__.py", line 35, in pytest_runtest_protocol -INTERNALERROR> reports = forked_run_report(item) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pytest_forked/__init__.py", line 56, in forked_run_report -INTERNALERROR> result = ff.waitfinish() -INTERNALERROR> File "/usr/lib/python3/dist-packages/py/_process/forkedfunc.py", line 82, in waitfinish -INTERNALERROR> pid, systemstatus = waiter(self.pid, 0) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pytest_timeout.py", line 140, in handler -INTERNALERROR> timeout_sigalrm(item, params.timeout) -INTERNALERROR> File "/usr/lib/python3/dist-packages/pytest_timeout.py", line 313, in timeout_sigalrm -INTERNALERROR> pytest.fail('Timeout >%ss' % timeout) -INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/outcomes.py", line 113, in fail -INTERNALERROR> raise Failed(msg=msg, pytrace=pytrace) -INTERNALERROR> Failed: Timeout >60.0s +unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlEvents FAILED [ 44%] +unittests/test_lib_agw_knobctrl.py::lib_agw_knobctrl_Tests::test_lib_agw_knobctrlMethods FAILED [ 44%] +unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookConstantsExist FAILED [ 44%] +unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookCtor FAILED [ 44%] +unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookDeletePages FAILED [ 44%] +unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookEvents FAILED [ 44%] +unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookPages FAILED [ 44%] +unittests/test_lib_agw_labelbook.py::lib_agw_labelbook_Tests::test_lib_agw_labelbookTabPosition FAILED [ 44%] +unittests/test_lib_agw_multidirdialog.py::lib_agw_multidirdialog_Tests::test_lib_agw_multidirdialogConstantsExist FAILED [ 44%] +unittests/test_lib_agw_multidirdialog.py::lib_agw_multidirdialog_Tests::test_lib_agw_multidirdialogCtor FAILED [ 44%] +unittests/test_lib_agw_multidirdialog.py::lib_agw_multidirdialog_Tests::test_lib_agw_multidirdialogMethods FAILED [ 44%] +unittests/test_lib_agw_peakmeter.py::lib_agw_peakmeter_Tests::test_lib_agw_peakmeterConstantsExist FAILED [ 44%] +unittests/test_lib_agw_peakmeter.py::lib_agw_peakmeter_Tests::test_lib_agw_peakmeterCtor FAILED [ 44%] +unittests/test_lib_agw_peakmeter.py::lib_agw_peakmeter_Tests::test_lib_agw_peakmeterMethods FAILED [ 44%] +unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerConstantsExist FAILED [ 44%] +unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerCtor FAILED [ 44%] +unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerPersistValue FAILED [ 45%] +unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerRestore FAILED [ 45%] +unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerZZZZCleanup FAILED [ 45%] +unittests/test_lib_agw_piectrl.py::lib_agw_piectrl_Tests::test_lib_agw_piectrlCtor FAILED [ 45%] +unittests/test_lib_agw_piectrl.py::lib_agw_piectrl_Tests::test_lib_agw_piectrlMethods FAILED [ 45%] +unittests/test_lib_agw_pybusyinfo.py::lib_agw_pybusyinfo_Tests::test_lib_agw_pybusyinfoCtor FAILED [ 45%] +unittests/test_lib_agw_pycollapsiblepane.py::lib_agw_pycollapsiblepane_Tests::test_lib_agw_pycollapsiblepaneConstantsExist FAILED [ 45%] +unittests/test_lib_agw_pycollapsiblepane.py::lib_agw_pycollapsiblepane_Tests::test_lib_agw_pycollapsiblepaneCtor PASSED [ 45%] +unittests/test_lib_agw_pycollapsiblepane.py::lib_agw_pycollapsiblepane_Tests::test_lib_agw_pycollapsiblepaneEvents FAILED [ 45%] +unittests/test_lib_agw_pycollapsiblepane.py::lib_agw_pycollapsiblepane_Tests::test_lib_agw_pycollapsiblepaneMethods FAILED [ 45%] +unittests/test_lib_agw_pygauge.py::lib_agw_pygauge_Tests::test_lib_agw_pygaugeCtor FAILED [ 45%] +unittests/test_lib_agw_pygauge.py::lib_agw_pygauge_Tests::test_lib_agw_pygaugeMethods FAILED [ 45%] +unittests/test_lib_agw_pyprogress.py::lib_agw_pyprogress_Tests::test_lib_agw_pyprogressConstantsExists FAILED [ 45%] +unittests/test_lib_agw_pyprogress.py::lib_agw_pyprogress_Tests::test_lib_agw_pyprogressCtor FAILED [ 45%] +unittests/test_lib_agw_pyprogress.py::lib_agw_pyprogress_Tests::test_lib_agw_pyprogressMethods FAILED [ 45%] +unittests/test_lib_agw_ribbonbar.py::lib_agw_ribbon_Tests::test_lib_agw_pyprogressConstantsExists FAILED [ 45%] +unittests/test_lib_agw_ribbonbar.py::lib_agw_ribbon_Tests::test_lib_agw_ribbonArtProviders FAILED [ 45%] +unittests/test_lib_agw_ribbonbar.py::lib_agw_ribbon_Tests::test_lib_agw_ribbonControlCtor FAILED [ 46%] +unittests/test_lib_agw_ribbonbar.py::lib_agw_ribbon_Tests::test_lib_agw_ribbonCtor FAILED [ 46%] +unittests/test_lib_agw_ribbonbar.py::lib_agw_ribbon_Tests::test_lib_agw_ribbonEvents FAILED [ 46%] +unittests/test_lib_agw_ribbonbar.py::lib_agw_ribbon_Tests::test_lib_agw_ribbonGalleryCtor FAILED [ 46%] +unittests/test_lib_agw_ribbonbar.py::lib_agw_ribbon_Tests::test_lib_agw_ribbonPageCtor FAILED [ 46%] +unittests/test_lib_agw_ribbonbar.py::lib_agw_ribbon_Tests::test_lib_agw_ribbonPanelCtor FAILED [ 46%] +unittests/test_lib_agw_ribbonbar.py::lib_agw_ribbon_Tests::test_lib_agw_ribbonStyles FAILED [ 46%] +unittests/test_lib_agw_rulerctrl.py::lib_agw_rulerctrl_Tests::test_lib_agw_rulerctrlCtor FAILED [ 46%] +unittests/test_lib_agw_rulerctrl.py::lib_agw_rulerctrl_Tests::test_lib_agw_rulerctrlEvents FAILED [ 46%] +unittests/test_lib_agw_rulerctrl.py::lib_agw_rulerctrl_Tests::test_lib_agw_rulerctrlMethods PASSED [ 46%] +unittests/test_lib_agw_shapedbutton.py::lib_agw_shapedbuttons_Tests::test_lib_agw_shapedbutton1 PASSED [ 46%] +unittests/test_lib_agw_shapedbutton.py::lib_agw_shapedbuttons_Tests::test_lib_agw_shapedbutton2 PASSED [ 46%] +unittests/test_lib_agw_shortcuteditor.py::lib_agw_shortcuteditor_Tests::test_lib_agw_rulerctrlCtor FAILED [ 46%] +unittests/test_lib_agw_shortcuteditor.py::lib_agw_shortcuteditor_Tests::test_lib_agw_shortcuteditorEvents PASSED [ 46%] +unittests/test_lib_agw_speedmeter.py::lib_agw_speedmeter_Tests::test_lib_agw_peakmeterConstantsExist FAILED [ 46%] +unittests/test_lib_agw_speedmeter.py::lib_agw_speedmeter_Tests::test_lib_agw_speedmeterCtor FAILED [ 46%] +unittests/test_lib_agw_speedmeter.py::lib_agw_speedmeter_Tests::test_lib_agw_speedmeterMethods FAILED [ 46%] +unittests/test_lib_agw_speedmeter.py::lib_agw_speedmeter_Tests::test_lib_agw_speedmeterSizerLayout FAILED [ 46%] +unittests/test_lib_agw_supertooltip.py::lib_agw_supertooltip_Tests::test_lib_agw_supertooltipCtor FAILED [ 47%] +unittests/test_lib_agw_thumbnailctrl.py::lib_agw_thumbnailctrl_Tests::test_lib_agw_thumbnailctrlCtor FAILED [ 47%] +unittests/test_lib_agw_thumbnailctrl.py::lib_agw_thumbnailctrl_Tests::test_lib_agw_thumbnailctrlEvents FAILED [ 47%] +unittests/test_lib_agw_toasterbox.py::lib_agw_toasterbox_Tests::test_lib_agw_thumbnailctrlStyles PASSED [ 47%] +unittests/test_lib_agw_toasterbox.py::lib_agw_toasterbox_Tests::test_lib_agw_toasterboxCtor SKIPPED [ 47%] +unittests/test_lib_agw_ultimatelistctrl.py::lib_agw_ultimatelistctrl_Tests::test_lib_agw_thumbnailctrlStyles PASSED [ 47%] +unittests/test_lib_agw_ultimatelistctrl.py::lib_agw_ultimatelistctrl_Tests::test_lib_agw_ultimatelistctrlCtorIcon FAILED [ 47%] +unittests/test_lib_agw_ultimatelistctrl.py::lib_agw_ultimatelistctrl_Tests::test_lib_agw_ultimatelistctrlCtorList FAILED [ 47%] +unittests/test_lib_agw_ultimatelistctrl.py::lib_agw_ultimatelistctrl_Tests::test_lib_agw_ultimatelistctrlCtorReport FAILED [ 47%] +unittests/test_lib_agw_ultimatelistctrl.py::lib_agw_ultimatelistctrl_Tests::test_lib_agw_ultimatelistctrlCtorVirtual FAILED [ 47%] +unittests/test_lib_agw_ultimatelistctrl.py::lib_agw_ultimatelistctrl_Tests::test_lib_agw_ultimatelistctrlEvents FAILED [ 47%] +unittests/test_lib_agw_xlsgrid.py::lib_agw_xlsgrid_Tests::test_lib_agw_xlsgridCtor FAILED [ 47%] +unittests/test_lib_agw_zoombar.py::lib_agw_zoombar_Tests::test_lib_agw_thumbnailctrlEvents FAILED [ 47%] +unittests/test_lib_agw_zoombar.py::lib_agw_zoombar_Tests::test_lib_agw_zoombarCtor FAILED [ 47%] +unittests/test_lib_busy.py::lib_busy_Tests::test_lib_busy1 FAILED [ 47%] +unittests/test_lib_busy.py::lib_busy_Tests::test_lib_busy2 FAILED [ 47%] +unittests/test_lib_busy.py::lib_busy_Tests::test_lib_busy3 FAILED [ 47%] +unittests/test_lib_busy.py::lib_busy_Tests::test_lib_busy4 FAILED [ 48%] +unittests/test_lib_busy.py::lib_busy_Tests::test_lib_busy5 FAILED [ 48%] +unittests/test_lib_buttons.py::lib_buttons_Tests::test_lib_buttons1 PASSED [ 48%] +unittests/test_lib_buttons.py::lib_buttons_Tests::test_lib_buttons2 PASSED [ 48%] +unittests/test_lib_calendar.py::lib_calendar_Tests::test_lib_calendar_CalenDlgCtor FAILED [ 48%] +unittests/test_lib_calendar.py::lib_calendar_Tests::test_lib_calendar_CalendarCtor FAILED [ 48%] +unittests/test_lib_calendar.py::lib_calendar_Tests::test_lib_calendar_CalendarSetDate PASSED [ 48%] +unittests/test_lib_cdate.py::lib_cdate_Tests::test_lib_cdate_DateCtor FAILED [ 48%] +unittests/test_lib_cdate.py::lib_cdate_Tests::test_lib_cdate_Dayofweek FAILED [ 48%] +unittests/test_lib_cdate.py::lib_cdate_Tests::test_lib_cdate_IsleapFalse FAILED [ 48%] +unittests/test_lib_cdate.py::lib_cdate_Tests::test_lib_cdate_IsleapTrue FAILED [ 48%] +unittests/test_lib_cdate.py::lib_cdate_Tests::test_lib_cdate_Julianday FAILED [ 48%] +unittests/test_lib_cdate.py::lib_cdate_Tests::test_lib_cdate_NowCtor FAILED [ 48%] +unittests/test_lib_colourdb.py::lib_colourdb_Tests::test_lib_colourdb1 FAILED [ 48%] +unittests/test_lib_colourselect.py::lib_colourselect_Tests::test_lib_colourselect1 PASSED [ 48%] +unittests/test_lib_expando.py::lib_expando_Tests::test_lib_expando1 FAILED [ 48%] +unittests/test_lib_fancytext.py::lib_fancytext_Tests::test_lib_fancytext_DateCtor FAILED [ 48%] +unittests/test_lib_fancytext.py::lib_fancytext_Tests::test_lib_fancytext_Methods FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testArrayConstruction FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testCreates FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testDataType FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testMinMax FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testMinMax2 FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testMinMax3 FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testMinMax4 FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testShape FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testShape2 FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testShape3 FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testCreator::testType FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testAsBBox::testPassArray FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testAsBBox::testPassArray2 FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testAsBBox::testPassThrough FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testAsBBox::testPassThrough2 FAILED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testAbove PASSED [ 49%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testBelow FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testCorner FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testInside FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testLeft FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testLowerLeft FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testLowerRight FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testOutside PASSED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testRight PASSED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testSame FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testTouch FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testUpperLeft FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testUpperRight FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testZeroSize FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testZeroSize2 FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testZeroSize3 FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testIntersect::testZeroSize4 FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testEquality::testIdentical FAILED [ 50%] +unittests/test_lib_floatcanvas_bbox.py::testEquality::testNotSame FAILED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testEquality::testSame FAILED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testEquality::testWithArray FAILED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testEquality::testWithArray2 FAILED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testAbove FAILED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testBelow PASSED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testLeft PASSED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testLowerLeft PASSED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testLowerRight PASSED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testPoint PASSED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testPointOutside FAILED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testRight FAILED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testSame FAILED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testUpperLeft PASSED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testInside::testUpperRight PASSED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testAbove FAILED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testBelow PASSED [ 51%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testLeft FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testLowerLeft FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testLowerRight FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testPointIn FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testPointLeftTopLine PASSED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testPointOnBottomLine PASSED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testPointOnBottomRight FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testPointOnLeft FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testPointOnRight PASSED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testPointOnTopLine FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testRight PASSED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testUpperLeft FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testPointInside::testUpperRight FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testFromPoints::testCreate FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testFromPoints::testCreateInts FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testFromPoints::testListTuples FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testFromPoints::testSinglePoint FAILED [ 52%] +unittests/test_lib_floatcanvas_bbox.py::testMerge::testDownLeft FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testMerge::testFullOutside PASSED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testMerge::testInside FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testMerge::testUpRight PASSED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testWidthHeight::testSetH FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testWidthHeight::testSetW PASSED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testWidthHeight::testWidth FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testCenter::testCenter PASSED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testCenter::testSetCenter FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testBBarray::testJoin FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testNullBBox::testEquals FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testNullBBox::testIsNull FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testNullBBox::testMerge FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testNullBBox::testNotEquals FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testNullBBox::testNotEquals2 FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testNullBBox::testOverlaps FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testNullBBox::testOverlaps2 FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testNullBBox::testValues FAILED [ 53%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testEquals FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testMerge PASSED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testMerge2 FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testNotEquals FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testNotEquals2 FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testOverlaps FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testOverlaps2 FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testOverlaps3 FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testOverlaps4 FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testOverlaps5 FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testInfBBox::testValues FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testSides::testBottom FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testSides::testLeft FAILED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testSides::testRight PASSED [ 54%] +unittests/test_lib_floatcanvas_bbox.py::testSides::testTop FAILED [ 54%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_arc FAILED [ 54%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_arrow FAILED [ 54%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_arrowline FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_bitmap FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_circle FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_line FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_point FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_pointset FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_polygon FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_rectangle FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_recteclips FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_scaledbitmap PASSED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_scaledbitmap2 FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_scaledtext FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_scaledtextbox PASSED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_spline FAILED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_squarepoint PASSED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_fc_text PASSED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_floatcanvasCtor PASSED [ 55%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_floatcanvasEvents FAILED [ 56%] +unittests/test_lib_floatcanvas_floatcanvas.py::lib_floatcanvas_floatcanvas_Tests::test_lib_floatcanvas_navcanvasCtor FAILED [ 56%] +unittests/test_lib_gizmos_ledctrl.py::lib_gizmos_ledctrl_Tests::test_defaultCtor PASSED [ 56%] +unittests/test_lib_gizmos_ledctrl.py::lib_gizmos_ledctrl_Tests::test_normalCtor FAILED [ 56%] +unittests/test_lib_imagebrowser.py::imagebrowser_Tests::test_imagebrowserDlg FAILED [ 56%] +unittests/test_lib_imagebrowser.py::imagebrowser_Tests::test_imagebrowserDlgChangeTypes FAILED [ 56%] +unittests/test_lib_imagebrowser.py::imagebrowser_Tests::test_imagebrowserDlgGetters FAILED [ 56%] +unittests/test_lib_imageutils.py::lib_imageutils_Tests::test_lib_imageutils1 FAILED [ 56%] +unittests/test_lib_intctrl.py::IntCtrlTests::test_canSetValueToNone FAILED [ 56%] +unittests/test_lib_intctrl.py::IntCtrlTests::test_intctrlCtor FAILED [ 56%] +unittests/test_lib_langlistctrl.py::langlistctrl_Tests::test_langlistctrlCtor FAILED [ 56%] +unittests/test_lib_masked.py::MaskedComboBoxTests::test_ComboBoxCtors FAILED [ 56%] +unittests/test_lib_masked.py::MaskedTextCtrlTests::test_textctrlCtor PASSED [ 56%] +unittests/test_lib_masked.py::MaskedTextCtrlTests::test_textctrlProperties FAILED [ 56%] +unittests/test_lib_masked.py::MaskedNumCtrlTests::test_numctrlCtor FAILED [ 56%] +unittests/test_lib_masked.py::MaskedNumCtrlTests::test_numctrlProperties FAILED [ 56%] +unittests/test_lib_masked.py::MaskedTimeCtrlTests::test_timectrlCtor FAILED [ 56%] +unittests/test_lib_masked.py::MaskedTimeCtrlTests::test_timectrlIsValid FAILED [ 57%] +unittests/test_lib_masked.py::MaskedTimeCtrlTests::test_timectrlProperties PASSED [ 57%] +unittests/test_lib_masked.py::MaskedIpAddrCtrlTests::test_ipaddrctrlCtor FAILED [ 57%] +unittests/test_lib_masked.py::MaskedIpAddrCtrlTests::test_ipaddrctrlProperties FAILED [ 57%] +unittests/test_lib_mixins_inspection.py::wit_TestCase::test_App FAILED [ 57%] +unittests/test_lib_mixins_inspection.py::wit_TestCase::test_App_OnInit FAILED [ 57%] +unittests/test_lib_mixins_inspection.py::wit_TestCase::test_Wit_Mixin PASSED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_oglCircle FAILED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_oglCompositeShape FAILED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_oglCtor PASSED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_oglDivisonShape PASSED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_oglEllipseShape FAILED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_oglLineShape FAILED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_oglPolygonShape FAILED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_oglRectangle FAILED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_oglShapeRegion PASSED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_oglTextShape FAILED [ 57%] +unittests/test_lib_ogl.py::lib_ogl_Tests::test_lib_ogl_Constants FAILED [ 58%] +unittests/test_lib_pdfviewer_pdfviewer.py::lib_pdfviewer_pdfviewer_Tests::test_lib_pdfviewer_loadFile SKIPPED [ 58%] +unittests/test_lib_pdfviewer_pdfviewer.py::lib_pdfviewer_pdfviewer_Tests::test_lib_pdfviewer_pdfviewerButtonPanelCtor SKIPPED [ 58%] +unittests/test_lib_pdfviewer_pdfviewer.py::lib_pdfviewer_pdfviewer_Tests::test_lib_pdfviewer_pdfviewerPdfViewerCtor SKIPPED [ 58%] +unittests/test_lib_plot.py::lib_plot_PlotCanvas_Tests::test_lib_plot_plotcanvasCtor FAILED [ 58%] +unittests/test_lib_plot.py::lib_plot_Tests::test_lib_plot_tempstyle_contextmanager FAILED [ 58%] +unittests/test_lib_plot.py::lib_plot_Tests::test_lib_plot_tempstyle_decorator FAILED [ 58%] +unittests/test_lib_pubsub_api3.py::lib_pubsub_Except::testAcceptAllArgs PASSED [ 58%] +unittests/test_lib_pubsub_api3.py::lib_pubsub_Except::testArgSpecDerivation PASSED [ 58%] +unittests/test_lib_pubsub_api3.py::lib_pubsub_Except::testDOAListenerPubsub PASSED [ 58%] +unittests/test_lib_pubsub_api3.py::lib_pubsub_Except::testDeadListener PASSED [ 58%] +unittests/test_lib_pubsub_api3.py::lib_pubsub_Except::testMissingReqdArgs PASSED [ 58%] +unittests/test_lib_pubsub_api3.py::lib_pubsub_Except::testSendForUndefinedTopic PASSED [ 58%] +unittests/test_lib_pubsub_api3.py::lib_pubsub_Except::testSendTopicWithMessage PASSED [ 58%] +unittests/test_lib_pubsub_api3.py::lib_pubsub_Except::testSubscribe PASSED [ 58%] +unittests/test_lib_pubsub_api3.py::lib_pubsub_Except::testTopicUnspecifiedError PASSED [ 58%] +unittests/test_lib_pubsub_api3.py::lib_pubsub_Except::testUnsubAll PASSED [ 58%] +unittests/test_lib_pubsub_defaultlog.py::lib_pubsub_DefaultLog::testNotifications PASSED [ 59%] +unittests/test_lib_pubsub_except.py::lib_pubsub_Except::testHandleExcept1a PASSED [ 59%] +unittests/test_lib_pubsub_except.py::lib_pubsub_Except::testHandleExcept1b PASSED [ 59%] +unittests/test_lib_pubsub_except.py::lib_pubsub_Except::testHandleExcept2 PASSED [ 59%] +unittests/test_lib_pubsub_except.py::lib_pubsub_Except::testNoExceptionHandling1 PASSED [ 59%] +unittests/test_lib_pubsub_except.py::lib_pubsub_Except::testNoExceptionHandling2 PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test0_ArgsInfo PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test10_weakMethod PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test11_testNaming PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test2_Validation0 PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test2_Validation1 PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test3_IsCallable PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test4_WantTopic PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test5_DOAListeners PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test6_ListenerEq PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test7_DyingListenersClass PASSED [ 59%] +unittests/test_lib_pubsub_listener.py::lib_pubsub_ArgsInfo::test8_getArgsBadListener PASSED [ 59%] +unittests/test_lib_pubsub_notify.py::lib_pubsub_Notify::testNotifyByPrint PASSED [ 60%] +unittests/test_lib_pubsub_notify2.py::lib_pubsub_Notify2::test0_NotificationTopics PASSED [ 60%] +unittests/test_lib_pubsub_notify2_1.py::lib_pubsub_Notify2_1::test1_SubscribeNotify PASSED [ 60%] +unittests/test_lib_pubsub_notify2_2.py::lib_pubsub_Notify2_2::test2_SendNotify PASSED [ 60%] +unittests/test_lib_pubsub_notify3.py::lib_pubsub_NotifyFlagChanges::testFlagChanges PASSED [ 60%] +unittests/test_lib_pubsub_notify4.py::lib_pubsub_NotifyN::testNotifications PASSED [ 60%] +unittests/test_lib_pubsub_provider.py::lib_pubsub_Except::test1 FAILED [ 60%] +unittests/test_lib_pubsub_provider.py::lib_pubsub_Except::test2_import_export_no_change SKIPPED [ 60%] +unittests/test_lib_pubsub_provider.py::lib_pubsub_Except::test_module_as_class PASSED [ 60%] +unittests/test_lib_pubsub_spec.py::lib_pubsub_Specs::test1_create PASSED [ 60%] +unittests/test_lib_pubsub_spec.py::lib_pubsub_Specs::test2_update PASSED [ 60%] +unittests/test_lib_pubsub_spec.py::lib_pubsub_Specs::test3_filter PASSED [ 60%] +unittests/test_lib_pubsub_topic.py::lib_pubsub_Topic::test0_CreateRoot PASSED [ 60%] +unittests/test_lib_pubsub_topic.py::lib_pubsub_Topic::test1_SubUnsub PASSED [ 60%] +unittests/test_lib_pubsub_topic.py::lib_pubsub_Topic::test2_CreateChild PASSED [ 60%] +unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr0_Basic::test10_BadTopicNames PASSED [ 60%] +unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr0_Basic::test10_GoodTopicNames PASSED [ 60%] +unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr1_GetOrCreate_NoDefnProv::test10_NoProtoListener PASSED [ 61%] +unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr1_GetOrCreate_NoDefnProv::test20_WithProtoListener PASSED [ 61%] +unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr2_GetOrCreate_DefnProv::test10_DefnProvider PASSED [ 61%] +unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr2_GetOrCreate_DefnProv::test20_UseProvider PASSED [ 61%] +unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr2_GetOrCreate_DefnProv::test30_DelTopic PASSED [ 61%] +unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr3_TreeTraverser::test1 PASSED [ 61%] +unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr3_TreeTraverser::test2 PASSED [ 61%] +unittests/test_lib_resizewidget.py::lib_resizewidget_Tests::test_lib_resizewidget FAILED [ 61%] +unittests/test_lib_resizewidget.py::lib_resizewidget_Tests::test_lib_resizewidget_Constants PASSED [ 61%] +unittests/test_lib_scrolledpanel.py::lib_scrolledpanel_Tests::test_lib_scrolled1 PASSED [ 61%] +unittests/test_lib_sized_controls.py::sizedFrame_Tests::test_frameCtors PASSED [ 61%] +unittests/test_lib_sized_controls.py::sizedFrame_Tests::test_frameProperties PASSED [ 61%] +unittests/test_lib_sized_controls.py::sizedFrame_Tests::test_frameStyles FAILED [ 61%] +unittests/test_lib_sized_controls.py::sizedDialog_Tests::test_dialog1 FAILED [ 61%] +unittests/test_lib_sized_controls.py::sizedDialog_Tests::test_dialog2 PASSED [ 61%] +unittests/test_lib_sized_controls.py::sizedDialog_Tests::test_dialogTextSizer PASSED [ 61%] +unittests/test_lib_sized_controls.py::sizedPanel_Tests::test_panelCtor PASSED [ 61%] +unittests/test_lib_sized_controls.py::sizedScrolledPanel_Tests::test_panelCtor PASSED [ 61%] +unittests/test_lib_splitter.py::splitter_Tests::test_splitterCtor FAILED [ 62%] +unittests/test_lib_splitter.py::splitter_Tests::test_splitterMulti FAILED [ 62%] +unittests/test_lib_statbmp.py::lib_statbmp_Tests::test_lib_statbmp1 FAILED [ 62%] +unittests/test_lib_stattext.py::lib_stattext_Tests::test_lib_stattext1 FAILED [ 62%] +unittests/test_lib_throbber.py::lib_throbber_Tests::test_lib_throbber FAILED [ 62%] +unittests/test_lib_throbber.py::lib_throbber_Tests::test_lib_throbber_Events PASSED [ 62%] +unittests/test_lib_ticker.py::lib_ticker_Tests::test_lib_ticker FAILED [ 62%] +unittests/test_listbook.py::listbook_Tests::test_listbook1 PASSED [ 62%] +unittests/test_listbook.py::listbook_Tests::test_listbook2 FAILED [ 62%] +unittests/test_listbook.py::listbook_Tests::test_listbook3 FAILED [ 62%] +unittests/test_listbox.py::listbox_Tests::test_ComboBoxCtors PASSED [ 62%] +unittests/test_listbox.py::listbox_Tests::test_ComboBoxDefaultCtor FAILED [ 62%] +unittests/test_listctrl.py::listctrl_Tests::test_listctrlConstants FAILED [ 62%] +unittests/test_listctrl.py::listctrl_Tests::test_listctrlCtor PASSED [ 62%] +unittests/test_listctrl.py::listctrl_Tests::test_listctrlDefaultCtor FAILED [ 62%] +unittests/test_listctrl.py::listctrl_Tests::test_listctrlDeleteAllColumns PASSED [ 62%] +unittests/test_listctrl.py::listctrl_Tests::test_listctrlEvent PASSED [ 62%] +unittests/test_listctrl.py::listctrl_Tests::test_listctrlEventTypes PASSED [ 63%] +unittests/test_listctrl.py::listctrl_Tests::test_listctrlItemData01 FAILED [ 63%] +unittests/test_listctrl.py::listctrl_Tests::test_listctrlItemData02 FAILED [ 63%] +unittests/test_log.py::log_Tests::test_log FAILED [ 63%] +unittests/test_longlong.py::longlong_Tests::test_longlong PASSED [ 63%] +unittests/test_mdi.py::mdi_Tests::test_mdiChildFrame1 PASSED [ 63%] +unittests/test_mdi.py::mdi_Tests::test_mdiChildFrame2 PASSED [ 63%] +unittests/test_mdi.py::mdi_Tests::test_mdiClientWindow FAILED [ 63%] +unittests/test_mdi.py::mdi_Tests::test_mdiParentFrame1 FAILED [ 63%] +unittests/test_mdi.py::mdi_Tests::test_mdiParentFrame2 FAILED [ 63%] +unittests/test_mediactrl.py::mediactrl_Tests::test_mediactrl1 PASSED [ 63%] +unittests/test_mediactrl.py::mediactrl_Tests::test_mediactrl2 FAILED [ 63%] +unittests/test_mediactrl.py::mediactrl_Tests::test_mediactrl3 FAILED [ 63%] +unittests/test_mediactrl.py::mediactrl_Tests::test_mediactrl4 FAILED [ 63%] +unittests/test_mediactrl.py::mediactrl_Tests::test_mediactrl5 FAILED [ 63%] +unittests/test_menu.py::menu_Tests::test_menu1 FAILED [ 63%] +unittests/test_menu.py::menu_Tests::test_menu2 PASSED [ 63%] +unittests/test_menu.py::menu_Tests::test_menu3 FAILED [ 64%] +unittests/test_menu.py::menu_Tests::test_menuBar1 FAILED [ 64%] +unittests/test_menu.py::menu_Tests::test_menuBar2 FAILED [ 64%] +unittests/test_menu.py::menu_Tests::test_menuBar3 FAILED [ 64%] +unittests/test_menuitem.py::menuitem_Tests::test_menuitemCtor PASSED [ 64%] +unittests/test_menuitem.py::menuitem_Tests::test_menuitemKinds FAILED [ 64%] +unittests/test_menuitem.py::menuitem_Tests::test_menuitemProperties PASSED [ 64%] +unittests/test_metafile.py::MetafileDCTests::test_MetafileDC1 SKIPPED [ 64%] +unittests/test_mimetype.py::mimetype_Tests::test_mimetype1 FAILED [ 64%] +unittests/test_mimetype.py::mimetype_Tests::test_mimetype2 FAILED [ 64%] +unittests/test_mimetype.py::mimetype_Tests::test_mimetype3 FAILED [ 64%] +unittests/test_mimetype.py::mimetype_Tests::test_mimetype4 FAILED [ 64%] +unittests/test_mimetype.py::mimetype_Tests::test_mimetype5 FAILED [ 64%] +unittests/test_minifram.py::minifram_Tests::test_minifram1 FAILED [ 64%] +unittests/test_minifram.py::minifram_Tests::test_minifram2 PASSED [ 64%] +unittests/test_modalhook.py::modalhook_Tests::test_modalhook1 FAILED [ 64%] +unittests/test_mousestate.py::MouseState::test_MouseState PASSED [ 64%] +unittests/test_msgdlg.py::msgdlg_Tests::test_gmsgdlg1 FAILED [ 65%] +unittests/test_msgdlg.py::msgdlg_Tests::test_gmsgdlg2 PASSED [ 65%] +unittests/test_msgdlg.py::msgdlg_Tests::test_gmsgdlg3 FAILED [ 65%] +unittests/test_msgdlg.py::msgdlg_Tests::test_msgdlg1 FAILED [ 65%] +unittests/test_msgdlg.py::msgdlg_Tests::test_msgdlg2 FAILED [ 65%] +unittests/test_msgdlg.py::msgdlg_Tests::test_msgdlg3 FAILED [ 65%] +unittests/test_msgdlg.py::msgdlg_Tests::test_msgdlgIconConstants FAILED [ 65%] +unittests/test_msgdlg.py::msgdlg_Tests::test_msgdlgLabels1 FAILED [ 65%] +unittests/test_msgdlg.py::msgdlg_Tests::test_msgdlgLabels2 FAILED [ 65%] +unittests/test_msgdlg.py::msgdlg_Tests::test_msgdlgProperties FAILED [ 65%] +unittests/test_mustHaveApp.py::TestMustHaveApp::test_mustHaveApp0 PASSED [ 65%] +unittests/test_mustHaveApp.py::TestMustHaveApp::test_mustHaveApp1 FAILED [ 65%] +unittests/test_notebook.py::notebook_Tests::test_notebookCtor FAILED [ 65%] +unittests/test_notebook.py::notebook_Tests::test_notebookDefaultCtor FAILED [ 65%] +unittests/test_notebook.py::notebook_Tests::test_notebookEventTypes FAILED [ 65%] +unittests/test_notebook.py::notebook_Tests::test_notebookPages PASSED [ 65%] +unittests/test_notebook.py::notebook_Tests::test_notebookStyles PASSED [ 65%] +unittests/test_notifmsg.py::notifmsg_Tests::test_notifmsg1 PASSED [ 66%] +unittests/test_odcombo.py::odcombo_Tests::test_odcombo1 FAILED [ 66%] +unittests/test_odcombo.py::odcombo_Tests::test_odcombo2 FAILED [ 66%] +unittests/test_overlay.py::overlay_Tests::test_overlay1 FAILED [ 66%] +unittests/test_palette.py::palette_Tests::test_nullPalette FAILED [ 66%] +unittests/test_palette.py::palette_Tests::test_paletteCreate1 FAILED [ 66%] +unittests/test_palette.py::palette_Tests::test_paletteCreate2 FAILED [ 66%] +unittests/test_palette.py::palette_Tests::test_paletteCtor1 FAILED [ 66%] +unittests/test_palette.py::palette_Tests::test_paletteCtor2 FAILED [ 66%] +unittests/test_palette.py::palette_Tests::test_paletteCtor3 FAILED [ 66%] +unittests/test_palette.py::palette_Tests::test_paletteCtor4 FAILED [ 66%] +unittests/test_panel.py::panel_Tests::test_panelCtor FAILED [ 66%] +unittests/test_panel.py::panel_Tests::test_panelDefaultCtor FAILED [ 66%] +unittests/test_pen.py::pen_Tests::test_penConstants FAILED [ 66%] +unittests/test_pen.py::pen_Tests::test_penCtor1 PASSED [ 66%] +unittests/test_pen.py::pen_Tests::test_penCtor2 FAILED [ 66%] +unittests/test_pen.py::pen_Tests::test_penCtor3 FAILED [ 66%] +unittests/test_pen.py::pen_Tests::test_penDashes PASSED [ 67%] +unittests/test_pen.py::pen_Tests::test_penNonzero FAILED [ 67%] +unittests/test_pen.py::pen_Tests::test_penNull FAILED [ 67%] +unittests/test_pen.py::pen_Tests::test_penOldStyleNames PASSED [ 67%] +unittests/test_pen.py::pen_Tests::test_penProperties PASSED [ 67%] +unittests/test_pen.py::pen_Tests::test_penStock FAILED [ 67%] +unittests/test_pgvariant.py::pgvariant_Tests::test_pgvariant1 PASSED [ 67%] +unittests/test_pgvariant.py::pgvariant_Tests::test_pgvariant2 PASSED [ 67%] +unittests/test_pgvariant.py::pgvariant_Tests::test_pgvariant3 FAILED [ 67%] +unittests/test_pgvariant.py::pgvariant_Tests::test_pgvariant4 FAILED [ 67%] +unittests/test_pgvariant.py::pgvariant_Tests::test_pgvariant5 FAILED [ 67%] +unittests/test_pgvariant.py::pgvariant_Tests::test_pgvariant6 FAILED [ 67%] +unittests/test_pgvariant.py::pgvariant_Tests::test_pgvariant7 PASSED [ 67%] +unittests/test_pgvariant.py::pgvariant_Tests::test_pgvariant8 FAILED [ 67%] +unittests/test_pgvariant.py::pgvariant_Tests::test_pgvariant9 FAILED [ 67%] +unittests/test_pi_import.py::PIImportTest::test_adv_pi FAILED [ 67%] +unittests/test_pi_import.py::PIImportTest::test_core_pi PASSED [ 67%] +unittests/test_pi_import.py::PIImportTest::test_dataview_pi FAILED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_glcanvas_pi FAILED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_html2_pi FAILED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_html_pi FAILED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_media_pi FAILED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_msw_pi SKIPPED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_propgrid_pi FAILED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_ribbon_pi FAILED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_richtext_pi FAILED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_stc_pi FAILED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_webkit_pi SKIPPED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_xml_pi FAILED [ 68%] +unittests/test_pi_import.py::PIImportTest::test_xrc_pi FAILED [ 68%] +unittests/test_pickers.py::pickers_Tests::test_pickersColour FAILED [ 68%] +unittests/test_pickers.py::pickers_Tests::test_pickersColourConstants FAILED [ 68%] +unittests/test_pickers.py::pickers_Tests::test_pickersDir FAILED [ 68%] +unittests/test_pickers.py::pickers_Tests::test_pickersFile FAILED [ 68%] +unittests/test_pickers.py::pickers_Tests::test_pickersFileConstants FAILED [ 69%] +unittests/test_pickers.py::pickers_Tests::test_pickersFont FAILED [ 69%] +unittests/test_pickers.py::pickers_Tests::test_pickersFontConstatnt FAILED [ 69%] +unittests/test_platinfo.py::platinfo_Tests::test_platinfo FAILED [ 69%] +unittests/test_platinfo.py::platinfo_Tests::test_platinfoFlags PASSED [ 69%] +unittests/test_platinfo.py::platinfo_Tests::test_platinfoProperties FAILED [ 69%] +unittests/test_popupwin.py::popupwin_Tests::test_popuptranswinCtor PASSED [ 69%] +unittests/test_popupwin.py::popupwin_Tests::test_popupwinCtor FAILED [ 69%] +unittests/test_popupwin.py::popupwin_Tests::test_popupwinDefaultCtor PASSED [ 69%] +unittests/test_position.py::position_Tests::test_GetIM FAILED [ 69%] +unittests/test_position.py::position_Tests::test_positionCopyCtor FAILED [ 69%] +unittests/test_position.py::position_Tests::test_positionCtors FAILED [ 69%] +unittests/test_position.py::position_Tests::test_positionMath1 FAILED [ 69%] +unittests/test_position.py::position_Tests::test_positionMath2 PASSED [ 69%] +unittests/test_position.py::position_Tests::test_positionProperties1 FAILED [ 69%] +unittests/test_position.py::position_Tests::test_positionProperties2 FAILED [ 69%] +unittests/test_power.py::power_Tests::test_power1 PASSED [ 69%] +unittests/test_preferences.py::preferences_Tests::test_preferences1 FAILED [ 69%] +unittests/test_printdlg.py::printdlg_Tests::test_printdlg1 PASSED [ 70%] +unittests/test_printdlg.py::printdlg_Tests::test_printdlg2 PASSED [ 70%] +unittests/test_printfw.py::printfw_Tests::test_printfw1 FAILED [ 70%] +unittests/test_printfw.py::printfw_Tests::test_printfw2 FAILED [ 70%] +unittests/test_process.py::process_Tests::test_process1 FAILED [ 70%] +unittests/test_process.py::process_Tests::test_process2 FAILED [ 70%] +unittests/test_progdlg.py::progdlg_Tests::test_progdlg1 FAILED [ 70%] +unittests/test_progdlg.py::progdlg_Tests::test_progdlg2 PASSED [ 70%] +unittests/test_propdlg.py::propdlg_Tests::test_propdlg1 FAILED [ 70%] +unittests/test_propdlg.py::propdlg_Tests::test_propgrid2 FAILED [ 70%] +unittests/test_propdlg.py::propdlg_Tests::test_propgrid3 FAILED [ 70%] +unittests/test_propdlg.py::propdlg_Tests::test_propgrid4 FAILED [ 70%] +unittests/test_propgrid.py::propgrid_Tests::test_propgrid01 PASSED [ 70%] +unittests/test_propgrid.py::propgrid_Tests::test_propgrid02 FAILED [ 70%] +unittests/test_propgrid.py::propgrid_Tests::test_propgrid03 FAILED [ 70%] +unittests/test_propgridadvprops.py::propgridadvprops_Tests::test_propgridadvprops01 FAILED [ 70%] +unittests/test_propgridadvprops.py::propgridadvprops_Tests::test_propgridadvprops02 FAILED [ 70%] +unittests/test_propgridadvprops.py::propgridadvprops_Tests::test_propgridadvprops03 FAILED [ 71%] +unittests/test_propgridadvprops.py::propgridadvprops_Tests::test_propgridadvprops04 PASSED [ 71%] +unittests/test_propgridadvprops.py::propgridadvprops_Tests::test_propgridadvprops05 PASSED [ 71%] +unittests/test_propgridadvprops.py::propgridadvprops_Tests::test_propgridadvprops06 PASSED [ 71%] +unittests/test_propgridadvprops.py::propgridadvprops_Tests::test_propgridadvprops07 FAILED [ 71%] +unittests/test_propgridadvprops.py::propgridadvprops_Tests::test_propgridadvprops08 FAILED [ 71%] +unittests/test_propgridadvprops.py::propgridadvprops_Tests::test_propgridadvprops09 FAILED [ 71%] +unittests/test_propgridadvprops.py::propgridadvprops_Tests::test_propgridadvprops10 FAILED [ 71%] +unittests/test_propgriddefs.py::propgriddefs_Tests::test_propgriddefs1 FAILED [ 71%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors01 FAILED [ 71%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors02 PASSED [ 71%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors03 FAILED [ 71%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors04 FAILED [ 71%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors05 FAILED [ 71%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors06 FAILED [ 71%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors07 FAILED [ 71%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors08 FAILED [ 71%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors09 FAILED [ 72%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors10 FAILED [ 72%] +unittests/test_propgrideditors.py::propgrideditors_Tests::test_propgrideditors11 FAILED [ 72%] +unittests/test_propgridiface.py::propgridiface_Tests::test_propgridiface01 PASSED [ 72%] +unittests/test_propgridiface.py::propgridiface_Tests::test_propgridiface02 FAILED [ 72%] +unittests/test_propgridiface.py::propgridiface_Tests::test_propgridiface03 FAILED [ 72%] +unittests/test_propgridmanager.py::propgridmanager_Tests::test_propgridmanager01 PASSED [ 72%] +unittests/test_propgridmanager.py::propgridmanager_Tests::test_propgridmanager02 PASSED [ 72%] +unittests/test_propgridpagestate.py::propgridpagestate_Tests::test_propgridpagestate01 FAILED [ 72%] +unittests/test_propgridpagestate.py::propgridpagestate_Tests::test_propgridpagestate02 FAILED [ 72%] +unittests/test_propgridpagestate.py::propgridpagestate_Tests::test_propgridpagestate03 FAILED [ 72%] +unittests/test_propgridpagestate.py::propgridpagestate_Tests::test_propgridpagestate04 FAILED [ 72%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty01 FAILED [ 72%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty02 FAILED [ 72%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty03 FAILED [ 72%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty04 FAILED [ 72%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty05 PASSED [ 72%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty06 FAILED [ 73%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty08 FAILED [ 73%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty09 FAILED [ 73%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty10 PASSED [ 73%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty11 FAILED [ 73%] +unittests/test_propgridproperty.py::property_Tests::test_propgridproperty12 PASSED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops01 PASSED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops02 FAILED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops03 FAILED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops04 FAILED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops05 FAILED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops06 FAILED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops07 FAILED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops08 FAILED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops09 FAILED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops10 FAILED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops11 FAILED [ 73%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops12 FAILED [ 74%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops13 PASSED [ 74%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops14 PASSED [ 74%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops15 PASSED [ 74%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops16 PASSED [ 74%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops17 PASSED [ 74%] +unittests/test_propgridprops.py::propgridprops_Tests::test_propgridprops18 FAILED [ 74%] +unittests/test_pseudodc.py::pseudodc_Tests::test_pseudodc01 FAILED [ 74%] +unittests/test_pseudodc.py::pseudodc_Tests::test_pseudodc02 FAILED [ 74%] +unittests/test_pseudodc.py::pseudodc_Tests::test_pseudodc03 FAILED [ 74%] +unittests/test_pseudodc.py::pseudodc_Tests::test_pseudodc04 FAILED [ 74%] +unittests/test_pseudodc.py::pseudodc_Tests::test_pseudodc05 FAILED [ 74%] +unittests/test_pseudodc.py::pseudodc_Tests::test_pseudodc06 FAILED [ 74%] +unittests/test_pseudodc.py::pseudodc_Tests::test_pseudodc07 PASSED [ 74%] +unittests/test_pseudodc.py::pseudodc_Tests::test_pseudodc08 PASSED [ 74%] +unittests/test_pseudodc.py::pseudodc_Tests::test_pseudodc09 FAILED [ 74%] +unittests/test_pseudodc.py::pseudodc_Tests::test_pseudodc10 PASSED [ 74%] +unittests/test_py_introspect.py::py_introspect_Tests::test_getAutoCompleteList PASSED [ 75%] +unittests/test_pyevent.py::PyEvents::test_CppClone PASSED [ 75%] +unittests/test_pyevent.py::PyEvents::test_CppCloneDerived PASSED [ 75%] +unittests/test_pyevent.py::PyEvents::test_CppCloneRefCounts SKIPPED [ 75%] +unittests/test_pyevent.py::PyEvents::test_PyCommandEvent PASSED [ 75%] +unittests/test_pyevent.py::PyEvents::test_PyEvent PASSED [ 75%] +unittests/test_pyevent.py::PyEvents::test_PyEvtCloneRefCounts PASSED [ 75%] +unittests/test_pyevent.py::SendingPyEvents::test_PyCommandEventDerivedClone FAILED [ 75%] +unittests/test_pyevent.py::SendingPyEvents::test_PyEventDerivedClone FAILED [ 75%] +unittests/test_pyevent.py::SendingPyEvents::test_PyEventDerivedPostEvent FAILED [ 75%] +unittests/test_pyevent.py::SendingPyEvents::test_PyEventDerivedProcessEvent FAILED [ 75%] +unittests/test_radiobox.py::radiobox_Tests::test_radioboxCtor FAILED [ 75%] +unittests/test_radiobox.py::radiobox_Tests::test_radioboxDefaultCtor FAILED [ 75%] +unittests/test_radiobox.py::radiobox_Tests::test_radioboxTweaks FAILED [ 75%] +unittests/test_radiobut.py::radiobut_Tests::test_radiobutCtors PASSED [ 75%] +unittests/test_radiobut.py::radiobut_Tests::test_radiobutDefaultCtor FAILED [ 75%] +unittests/test_radiobut.py::radiobut_Tests::test_radiobutValue PASSED [ 75%] +unittests/test_rawbmp.py::rawbmp_Tests::test_rawbmp1 FAILED [ 76%] +unittests/test_rearrangectrl.py::rearrangectrl_Tests::test_rearrangectrl1 FAILED [ 76%] +unittests/test_rearrangectrl.py::rearrangectrl_Tests::test_rearrangectrl2 PASSED [ 76%] +unittests/test_rearrangectrl.py::rearrangectrl_Tests::test_rearrangectrl3 FAILED [ 76%] +unittests/test_rearrangectrl.py::rearrangectrl_Tests::test_rearrangectrl4 PASSED [ 76%] +unittests/test_rearrangectrl.py::rearrangectrl_Tests::test_rearrangectrl5 FAILED [ 76%] +unittests/test_rearrangectrl.py::rearrangectrl_Tests::test_rearrangectrl6 FAILED [ 76%] +unittests/test_region.py::region_Tests::test_regionCtors PASSED [ 76%] +unittests/test_region.py::region_Tests::test_regionIterator1 FAILED [ 76%] +unittests/test_region.py::region_Tests::test_regionIterator2 FAILED [ 76%] +unittests/test_region.py::region_Tests::test_regionOtherRandomStuff FAILED [ 76%] +unittests/test_renderer.py::renderer_Tests::test_renderer1 FAILED [ 76%] +unittests/test_renderer.py::renderer_Tests::test_renderer2 FAILED [ 76%] +unittests/test_renderer.py::renderer_Tests::test_renderer3 PASSED [ 76%] +unittests/test_ribbon_art.py::ribbon_art_Tests::test_ribbon_art1 FAILED [ 76%] +unittests/test_ribbon_art.py::ribbon_art_Tests::test_ribbon_art2 PASSED [ 76%] +unittests/test_ribbon_art.py::ribbon_art_Tests::test_ribbon_art3 FAILED [ 76%] +unittests/test_ribbon_art.py::ribbon_art_Tests::test_ribbon_art4 FAILED [ 76%] +unittests/test_ribbon_art.py::ribbon_art_Tests::test_ribbon_art5 FAILED [ 77%] +unittests/test_ribbon_art.py::ribbon_art_Tests::test_ribbon_art6 FAILED [ 77%] +unittests/test_ribbon_art.py::ribbon_art_Tests::test_ribbon_art7 FAILED [ 77%] +unittests/test_ribbon_bar.py::ribbon_bar_Tests::test_ribbon_bar1 FAILED [ 77%] +unittests/test_ribbon_bar.py::ribbon_bar_Tests::test_ribbon_bar2 FAILED [ 77%] +unittests/test_ribbon_bar.py::ribbon_bar_Tests::test_ribbon_bar3 FAILED [ 77%] +unittests/test_ribbon_bar.py::ribbon_bar_Tests::test_ribbon_bar4 FAILED [ 77%] +unittests/test_ribbon_bar.py::ribbon_bar_Tests::test_ribbon_bar5 FAILED [ 77%] +unittests/test_ribbon_buttonbar.py::ribbon_buttonbar_Tests::test_ribbon_buttonbar1 FAILED [ 77%] +unittests/test_ribbon_buttonbar.py::ribbon_buttonbar_Tests::test_ribbon_buttonbar2 FAILED [ 77%] +unittests/test_ribbon_buttonbar.py::ribbon_buttonbar_Tests::test_ribbon_buttonbar3 PASSED [ 77%] +unittests/test_ribbon_buttonbar.py::ribbon_buttonbar_Tests::test_ribbon_buttonbar4 FAILED [ 77%] +unittests/test_ribbon_buttonbar.py::ribbon_buttonbar_Tests::test_ribbon_buttonbar5 PASSED [ 77%] +unittests/test_ribbon_control.py::ribbon_control_Tests::test_ribbon_control1 PASSED [ 77%] +unittests/test_ribbon_control.py::ribbon_control_Tests::test_ribbon_control2 FAILED [ 77%] +unittests/test_ribbon_gallery.py::ribbon_gallery_Tests::test_ribbon_gallery1 PASSED [ 77%] +unittests/test_ribbon_gallery.py::ribbon_gallery_Tests::test_ribbon_gallery2 FAILED [ 77%] +unittests/test_ribbon_gallery.py::ribbon_gallery_Tests::test_ribbon_gallery3 FAILED [ 78%] +unittests/test_ribbon_gallery.py::ribbon_gallery_Tests::test_ribbon_gallery4 FAILED [ 78%] +unittests/test_ribbon_gallery.py::ribbon_gallery_Tests::test_ribbon_gallery5 FAILED [ 78%] +unittests/test_ribbon_gallery.py::ribbon_gallery_Tests::test_ribbon_gallery6 FAILED [ 78%] +unittests/test_ribbon_gallery.py::ribbon_gallery_Tests::test_ribbon_gallery7 FAILED [ 78%] +unittests/test_ribbon_page.py::ribbon_page_Tests::test_ribbon_page1 FAILED [ 78%] +unittests/test_ribbon_page.py::ribbon_page_Tests::test_ribbon_page2 FAILED [ 78%] +unittests/test_ribbon_panel.py::ribbon_panel_Tests::test_ribbon_panel1 PASSED [ 78%] +unittests/test_ribbon_panel.py::ribbon_panel_Tests::test_ribbon_panel2 PASSED [ 78%] +unittests/test_ribbon_panel.py::ribbon_panel_Tests::test_ribbon_panel3 FAILED [ 78%] +unittests/test_ribbon_panel.py::ribbon_panel_Tests::test_ribbon_panel4 FAILED [ 78%] +unittests/test_ribbon_toolbar.py::ribbon_toolbar_Tests::test_ribbon_toolbar1 FAILED [ 78%] +unittests/test_ribbon_toolbar.py::ribbon_toolbar_Tests::test_ribbon_toolbar2 FAILED [ 78%] +unittests/test_ribbon_toolbar.py::ribbon_toolbar_Tests::test_ribbon_toolbar3 PASSED [ 78%] +unittests/test_ribbon_toolbar.py::ribbon_toolbar_Tests::test_ribbon_toolbar4 FAILED [ 78%] +unittests/test_ribbon_toolbar.py::ribbon_toolbar_Tests::test_ribbon_toolbar5 PASSED [ 78%] +unittests/test_richmsgdlg.py::richmsgdlg_Tests::test_richmsgdlg1 FAILED [ 78%] +unittests/test_richmsgdlg.py::richmsgdlg_Tests::test_richmsgdlg2 PASSED [ 79%] +unittests/test_richmsgdlg.py::richmsgdlg_Tests::test_richmsgdlg3 PASSED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_GetIM FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer01 FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer02 FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer03 FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer04 PASSED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer05 FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer06 FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer07 FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer08 PASSED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer09 PASSED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer10 FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer11 FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer12 PASSED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer13 FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer14a FAILED [ 79%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer14b PASSED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer14c FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer14d FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer14e PASSED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer15 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer16 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer17 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer18 PASSED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer19 PASSED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer20 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer21 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer22 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer23 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer24 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer25 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer26 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer27 FAILED [ 80%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer28 FAILED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer29 FAILED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer30 FAILED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer31 FAILED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer32 FAILED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer33 FAILED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer34 PASSED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer35 PASSED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer36 FAILED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer37 PASSED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer38 FAILED [ 81%] +unittests/test_richtextbuffer.py::richtextbuffer_Tests::test_richtextbuffer39 FAILED [ 81%] +unittests/test_richtextctrl.py::richtextctrl_Tests::test_richtextctrl1 FAILED [ 81%] +unittests/test_richtextctrl.py::richtextctrl_Tests::test_richtextctrl2 PASSED [ 81%] +unittests/test_richtextctrl.py::richtextctrl_Tests::test_richtextctrl3 FAILED [ 81%] +unittests/test_richtextctrl.py::richtextctrl_Tests::test_richtextctrl4 FAILED [ 81%] +unittests/test_richtextctrl.py::richtextctrl_Tests::test_richtextctrl5 PASSED [ 81%] +unittests/test_richtextctrl.py::richtextctrl_Tests::test_richtextctrl6 PASSED [ 82%] +unittests/test_richtextctrl.py::richtextctrl_Tests::test_richtextctrl7 PASSED [ 82%] +unittests/test_richtextctrl.py::richtextctrl_Tests::test_richtextctrl8 FAILED [ 82%] +unittests/test_richtextformatdlg.py::richtextformatdlg_Tests::test_richtextformatdlg1 FAILED [ 82%] +unittests/test_richtextformatdlg.py::richtextformatdlg_Tests::test_richtextformatdlg2 FAILED [ 82%] +unittests/test_richtexthtml.py::richtexthtml_Tests::test_richtexthtml1 FAILED [ 82%] +unittests/test_richtextprint.py::richtextprint_Tests::test_richtextprint1 FAILED [ 82%] +unittests/test_richtextprint.py::richtextprint_Tests::test_richtextprint2 FAILED [ 82%] +unittests/test_richtextprint.py::richtextprint_Tests::test_richtextprint3 FAILED [ 82%] +unittests/test_richtextprint.py::richtextprint_Tests::test_richtextprint4 FAILED [ 82%] +unittests/test_richtextstyledlg.py::richtextstyledlg_Tests::test_richtextstyledlg1 FAILED [ 82%] +unittests/test_richtextstyledlg.py::richtextstyledlg_Tests::test_richtextstyledlg2 FAILED [ 82%] +unittests/test_richtextstyledlg.py::richtextstyledlg_Tests::test_richtextstyledlg3 FAILED [ 82%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles01 FAILED [ 82%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles02 PASSED [ 82%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles03 FAILED [ 82%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles04 FAILED [ 82%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles05 FAILED [ 83%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles06 FAILED [ 83%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles07 PASSED [ 83%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles08 FAILED [ 83%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles09 FAILED [ 83%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles10 FAILED [ 83%] +unittests/test_richtextstyles.py::richtextstyles_Tests::test_richtextstyles6 FAILED [ 83%] +unittests/test_richtextsymboldlg.py::richtextsymboldlg_Tests::test_richtextsymboldlg1 PASSED [ 83%] +unittests/test_richtextsymboldlg.py::richtextsymboldlg_Tests::test_richtextsymboldlg2 FAILED [ 83%] +unittests/test_richtextxml.py::richtextxml_Tests::test_richtextxml1 FAILED [ 83%] +unittests/test_richtooltip.py::richtooltip_Tests::test_richtooltip1 PASSED [ 83%] +unittests/test_richtooltip.py::richtooltip_Tests::test_richtooltip2 PASSED [ 83%] +unittests/test_sashwin.py::sashwin_Tests::test_sashwin1 FAILED [ 83%] +unittests/test_sashwin.py::sashwin_Tests::test_sashwin2 PASSED [ 83%] +unittests/test_sashwin.py::sashwin_Tests::test_sashwin3 PASSED [ 83%] +unittests/test_scrolbar.py::scrolbar_Tests::test_scrolbarCtor FAILED [ 83%] +unittests/test_scrolbar.py::scrolbar_Tests::test_scrolbarDefaultCtor PASSED [ 83%] +unittests/test_scrolbar.py::scrolbar_Tests::test_scrolbarEvents FAILED [ 84%] +unittests/test_scrolbar.py::scrolbar_Tests::test_scrolbarProperties PASSED [ 84%] +unittests/test_scrolwin.py::scrolwin_Tests::test_SetFocusIgnoringChildren FAILED [ 84%] +unittests/test_scrolwin.py::scrolwin_Tests::test_scrolcvsCtor FAILED [ 84%] +unittests/test_scrolwin.py::scrolwin_Tests::test_scrolcvsDefaultCtor FAILED [ 84%] +unittests/test_scrolwin.py::scrolwin_Tests::test_scrolwinCtor FAILED [ 84%] +unittests/test_scrolwin.py::scrolwin_Tests::test_scrolwinDefaultCtor PASSED [ 84%] +unittests/test_scrolwin.py::scrolwin_Tests::test_scrolwinOnDraw FAILED [ 84%] +unittests/test_settings.py::settings_Tests::test_settingsConstants FAILED [ 84%] +unittests/test_settings.py::settings_Tests::test_settingsGetColour PASSED [ 84%] +unittests/test_settings.py::settings_Tests::test_settingsGetFont FAILED [ 84%] +unittests/test_settings.py::settings_Tests::test_settingsGetMetric FAILED [ 84%] +unittests/test_simplebook.py::simplebook_Tests::test_simplebook01 FAILED [ 84%] +unittests/test_simplebook.py::simplebook_Tests::test_simplebook02 FAILED [ 84%] +unittests/test_simplebook.py::simplebook_Tests::test_simplebook03 FAILED [ 84%] +unittests/test_sizer.py::sizer_Tests::test_iter FAILED [ 84%] +unittests/test_sizer.py::sizer_Tests::test_sizer2 PASSED [ 84%] +unittests/test_sizer.py::sizer_Tests::test_sizerAddMany FAILED [ 84%] +unittests/test_sizer.py::sizer_Tests::test_sizerBool FAILED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerBox FAILED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerFlags PASSED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerFlexGrid FAILED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerFlexGrid2 PASSED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerGrid FAILED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerOrientation FAILED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerSpacers1 FAILED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerSpacers2 FAILED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerSpacers3 FAILED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerSpacers4 FAILED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerSpacers5 FAILED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerSpacers6 PASSED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerStatBox PASSED [ 85%] +unittests/test_sizer.py::sizer_Tests::test_sizerUserData FAILED [ 85%] +unittests/test_slider.py::slider_Tests::test_sliderCtor FAILED [ 85%] +unittests/test_slider.py::slider_Tests::test_sliderDefaultCtor PASSED [ 85%] +unittests/test_slider.py::slider_Tests::test_sliderFlags FAILED [ 86%] +unittests/test_slider.py::slider_Tests::test_sliderProperties FAILED [ 86%] +unittests/test_slider.py::slider_Tests::test_sliderRange FAILED [ 86%] +unittests/test_slider.py::slider_Tests::test_sliderRange2 FAILED [ 86%] +unittests/test_snglinst.py::snglinst_Tests::test_snglinstCtor FAILED [ 86%] +unittests/test_snglinst.py::snglinst_Tests::test_snglinstDefaultCtor FAILED [ 86%] +unittests/test_sound.py::sound_Tests::test_sound1 FAILED [ 86%] +unittests/test_sound.py::sound_Tests::test_sound2 FAILED [ 86%] +unittests/test_sound.py::sound_Tests::test_sound3 PASSED [ 86%] +unittests/test_sound.py::sound_Tests::test_sound4 FAILED [ 86%] +unittests/test_spinbutt.py::spinbutt_Tests::test_spinbuttCtor FAILED [ 86%] +unittests/test_spinbutt.py::spinbutt_Tests::test_spinbuttDefaultCtor FAILED [ 86%] +unittests/test_spinbutt.py::spinbutt_Tests::test_spinbuttOther FAILED [ 86%] +unittests/test_spinbutt.py::spinbutt_Tests::test_spinctrlProperties PASSED [ 86%] +unittests/test_spinbutt.py::spinbutt_Tests::test_spinctrlPropertiesInAction FAILED [ 86%] +unittests/test_spinctrl.py::spinctrl_Tests::test_spinctrlCtor FAILED [ 86%] +unittests/test_spinctrl.py::spinctrl_Tests::test_spinctrlDefaultCtor PASSED [ 86%] +unittests/test_spinctrl.py::spinctrl_Tests::test_spinctrlDoubleCtor FAILED [ 87%] +unittests/test_spinctrl.py::spinctrl_Tests::test_spinctrlDoubleDefaultCtor PASSED [ 87%] +unittests/test_spinctrl.py::spinctrl_Tests::test_spinctrlDoubleProperties PASSED [ 87%] +unittests/test_spinctrl.py::spinctrl_Tests::test_spinctrlOther FAILED [ 87%] +unittests/test_spinctrl.py::spinctrl_Tests::test_spinctrlProperties PASSED [ 87%] +unittests/test_splash.py::splash_Tests::test_splash1 FAILED [ 87%] +unittests/test_splash.py::splash_Tests::test_splash2 FAILED [ 87%] +unittests/test_splitter.py::splitter_Tests::test_splitterCtor PASSED [ 87%] +unittests/test_splitter.py::splitter_Tests::test_splitterDefaultCtor FAILED [ 87%] +unittests/test_splitter.py::splitter_Tests::test_splitterEventTypes FAILED [ 87%] +unittests/test_splitter.py::splitter_Tests::test_splitterFlags FAILED [ 87%] +unittests/test_splitter.py::splitter_Tests::test_splitterProperties PASSED [ 87%] +unittests/test_splitter.py::splitter_Tests::test_splitterSplits FAILED [ 87%] +unittests/test_srchctrl.py::srchctrl_Tests::test_srchctrlCtor FAILED [ 87%] +unittests/test_srchctrl.py::srchctrl_Tests::test_srchctrlDefaultCtor FAILED [ 87%] +unittests/test_srchctrl.py::srchctrl_Tests::test_srchctrlEventBinding FAILED [ 87%] +unittests/test_srchctrl.py::srchctrl_Tests::test_srchctrlGetSetValue FAILED [ 87%] +unittests/test_srchctrl.py::srchctrl_Tests::test_srchctrlHasTextCtrlMethods FAILED [ 88%] +unittests/test_srchctrl.py::srchctrl_Tests::test_srchctrlProperties FAILED [ 88%] +unittests/test_statbmp.py::statbmp_Tests::test_statbmpCtor FAILED [ 88%] +unittests/test_statbmp.py::statbmp_Tests::test_statbmpDefaultCtor PASSED [ 88%] +unittests/test_statbmp.py::statbmp_Tests::test_statbmpProperties PASSED [ 88%] +unittests/test_statbox.py::statbox_Tests::test_statboxCtor FAILED [ 88%] +unittests/test_statbox.py::statbox_Tests::test_statboxDefaultCtor PASSED [ 88%] +unittests/test_statbox.py::statbox_Tests::test_statboxGetBordersForSizer FAILED [ 88%] +unittests/test_statline.py::statline_Tests::test_statlineCtor FAILED [ 88%] +unittests/test_statline.py::statline_Tests::test_statlineDefaultCtor FAILED [ 88%] +unittests/test_stattext.py::stattext_Tests::test_stattextCtor FAILED [ 88%] +unittests/test_stattext.py::stattext_Tests::test_stattextDefaultCtor FAILED [ 88%] +unittests/test_stattext.py::stattext_Tests::test_stattextFlags FAILED [ 88%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarCtor FAILED [ 88%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarDefaultCtor PASSED [ 88%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarFlags PASSED [ 88%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarFrameUse1 FAILED [ 88%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarFrameUse2 FAILED [ 89%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarFrameUse3 FAILED [ 89%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarGetFielRect FAILED [ 89%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarStatusBarPane FAILED [ 89%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarStyles PASSED [ 89%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarWidths1 FAILED [ 89%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarWidths2 FAILED [ 89%] +unittests/test_statusbar.py::statusbar_Tests::test_statusbarWidths3 FAILED [ 89%] +unittests/test_stc.py::stc_Tests::test_stcCtor FAILED [ 89%] +unittests/test_stc.py::stc_Tests::test_stcDefaultCtor FAILED [ 89%] +unittests/test_stc.py::stc_Tests::test_stcEvent PASSED [ 89%] +unittests/test_stc.py::stc_Tests::test_stcEventBinderssExist PASSED [ 89%] +unittests/test_stc.py::stc_Tests::test_stcEventConstantsExist PASSED [ 89%] +unittests/test_stc.py::stc_Tests::test_stcHasTextCtrlMethods PASSED [ 89%] +unittests/test_stc.py::stc_Tests::test_stcStyleTextCtrl1 FAILED [ 89%] +unittests/test_stc.py::stc_Tests::test_stcStyleTextCtrl2 PASSED [ 89%] +unittests/test_stc.py::stc_Tests::test_stcStyleTextCtrl3 PASSED [ 89%] +unittests/test_stc.py::stc_Tests::test_stcStyleTextCtrl5 FAILED [ 90%] +unittests/test_stc.py::stc_Tests::test_stcStyleTextCtrl6 FAILED [ 90%] +unittests/test_stc.py::stc_Tests::test_stcStyleTextCtrl8 FAILED [ 90%] +unittests/test_stc.py::stc_Tests::test_stcStyleTextCtrlConstantsExist PASSED [ 90%] +unittests/test_stdpaths.py::stdpaths_Tests::test_stdpaths FAILED [ 90%] +unittests/test_stockgdi.py::stockgdi_Tests::test_stockgdi1 PASSED [ 90%] +unittests/test_stockgdi.py::stockgdi_Tests::test_stockgdi2 FAILED [ 90%] +unittests/test_stockgdi.py::stockgdi_Tests::test_stockgdi3 FAILED [ 90%] +unittests/test_stockitem.py::stockitem_Tests::test_stockitem1 xfail [ 90%] +unittests/test_stopwatch.py::stopwatch_Tests::test_stopwatch1 PASSED [ 90%] +unittests/test_stream.py::stream_Tests::test_inputStreamParam FAILED [ 90%] +unittests/test_stream.py::stream_Tests::test_outputStreamParam FAILED [ 90%] +unittests/test_string.py::String::test_StringTypemapsPy3 PASSED [ 90%] +unittests/test_sysopt.py::sysopt_Tests::test_sysopt1 FAILED [ 90%] +unittests/test_taskbar.py::taskbar_Tests::test_taskbar1 PASSED [ 90%] +unittests/test_taskbar.py::taskbar_Tests::test_taskbar2 FAILED [ 90%] +unittests/test_textcompleter.py::testcompleter_Tests::test_textCompleter1 PASSED [ 90%] +unittests/test_textcompleter.py::testcompleter_Tests::test_textCompleterSimple PASSED [ 91%] +unittests/test_textcompleter.py::testcompleter_Tests::test_textcompleterClasses PASSED [ 91%] +unittests/test_textctrl.py::textctrl_Tests::test_textctrlCtor FAILED [ 91%] +unittests/test_textctrl.py::textctrl_Tests::test_textctrlDefaultCtor PASSED [ 91%] +unittests/test_textctrl.py::textctrl_Tests::test_textctrlFlags FAILED [ 91%] +unittests/test_textctrl.py::textctrl_Tests::test_textctrlNativeCaret FAILED [ 91%] +unittests/test_textctrl.py::textctrl_Tests::test_textctrlProperties FAILED [ 91%] +unittests/test_textctrl.py::textctrl_Tests::test_textctrlTextAttr FAILED [ 91%] +unittests/test_textctrl.py::textctrl_Tests::test_textctrlTextAttrProperties FAILED [ 91%] +unittests/test_textdlg.py::textdlg_Tests::test_textdlg1 FAILED [ 91%] +unittests/test_textdlg.py::textdlg_Tests::test_textdlg2 FAILED [ 91%] +unittests/test_tglbtn.py::tglbtn_Tests::test_ButtonDefaultCtor FAILED [ 91%] +unittests/test_tglbtn.py::tglbtn_Tests::test_ButtonDefaultEvt FAILED [ 91%] +unittests/test_tglbtn.py::tglbtn_Tests::test_tglbtnCtors PASSED [ 91%] +unittests/test_timectrl.py::timectrl_Tests::test_timectrl1 FAILED [ 91%] +unittests/test_timer.py::timer_Tests::test_timerCallLater1 PASSED [ 91%] +unittests/test_timer.py::timer_Tests::test_timerCallLater2 FAILED [ 91%] +unittests/test_timer.py::timer_Tests::test_timerDerivedClass FAILED [ 92%] +unittests/test_timer.py::timer_Tests::test_timerOwner1 FAILED [ 92%] +unittests/test_timer.py::timer_Tests::test_timerOwner2 PASSED [ 92%] +unittests/test_timer.py::timer_Tests::test_timerPyTimer FAILED [ 92%] +unittests/test_tipdlg.py::tipdlg_Tests::test_tipdlg1 PASSED [ 92%] +unittests/test_tipdlg.py::tipdlg_Tests::test_tipdlg2 FAILED [ 92%] +unittests/test_tipwin.py::tipwin_Tests::test_tipwinCtor FAILED [ 92%] +unittests/test_toolbar.py::toolbar_Tests::test_toolbar1 PASSED [ 92%] +unittests/test_toolbar.py::toolbar_Tests::test_toolbar2 PASSED [ 92%] +unittests/test_toolbar.py::toolbar_Tests::test_toolbarClientData1 PASSED [ 92%] +unittests/test_toolbar.py::toolbar_Tests::test_toolbarClientData2 FAILED [ 92%] +unittests/test_toolbar.py::toolbar_Tests::test_toolbarStyles FAILED [ 92%] +unittests/test_toolbar.py::toolbar_Tests::test_toolbarTools1 FAILED [ 92%] +unittests/test_toolbar.py::toolbar_Tests::test_toolbarTools2 FAILED [ 92%] +unittests/test_toolbook.py::toolbook_Tests::test_toolbook1 PASSED [ 92%] +unittests/test_toolbook.py::toolbook_Tests::test_toolbook2 PASSED [ 92%] +unittests/test_toolbook.py::toolbook_Tests::test_toolbook3 FAILED [ 92%] +unittests/test_tooltip.py::tooltip_Tests::test_tooltip FAILED [ 92%] +unittests/test_tooltip.py::tooltip_Tests::test_tooltipStatics FAILED [ 93%] +unittests/test_translation.py::translation_Tests::test_translation1 FAILED [ 93%] +unittests/test_treebook.py::treebook_Tests::test_treebook1 FAILED [ 93%] +unittests/test_treebook.py::treebook_Tests::test_treebook2 PASSED [ 93%] +unittests/test_treebook.py::treebook_Tests::test_treebook3 FAILED [ 93%] +unittests/test_treebook.py::treebook_Tests::test_treebook4 PASSED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treeEventsExist FAILED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treectrlConstantsExist FAILED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treectrlCtor FAILED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treectrlDefaultCtor FAILED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treectrlGetFirstNext PASSED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treectrlGetSelections FAILED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treectrlTreeItemData PASSED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treectrlTreeItemId01 FAILED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treectrlTreeItemId02 FAILED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treectrlTreeItemId03 FAILED [ 93%] +unittests/test_treectrl.py::treectrl_Tests::test_treectrlTreeItemPyData FAILED [ 93%] +unittests/test_treelist.py::treelist_Tests::test_treelist1 FAILED [ 94%] +unittests/test_treelist.py::treelist_Tests::test_treelist2 FAILED [ 94%] +unittests/test_treelist.py::treelist_Tests::test_treelist3 FAILED [ 94%] +unittests/test_treelist.py::treelist_Tests::test_treelist4 FAILED [ 94%] +unittests/test_treelist.py::treelist_Tests::test_treelistitem_hashable FAILED [ 94%] +unittests/test_utils.py::utils_Tests::test_utilsBusyCursor FAILED [ 94%] +unittests/test_utils.py::utils_Tests::test_utilsBusyCursor2 FAILED [ 94%] +unittests/test_utils.py::utils_Tests::test_utilsBusyCursor3 FAILED [ 94%] +unittests/test_utils.py::utils_Tests::test_utilsSomeOtherStuff FAILED [ 94%] +unittests/test_utils.py::utils_Tests::test_utilsVersionInfo FAILED [ 94%] +unittests/test_utils.py::utils_Tests::test_utilsWindowDisabler FAILED [ 94%] +unittests/test_validate.py::validate_Tests::test_validateDefault FAILED [ 94%] +unittests/test_validate.py::validate_Tests::test_validateTransfer FAILED [ 94%] +unittests/test_variant.py::variant_Tests::test_variant1 PASSED [ 94%] +unittests/test_variant.py::variant_Tests::test_variant2 FAILED [ 94%] +unittests/test_variant.py::variant_Tests::test_variant3 FAILED [ 94%] +unittests/test_variant.py::variant_Tests::test_variantArrayString1 FAILED [ 94%] +unittests/test_variant.py::variant_Tests::test_variantArrayString2 FAILED [ 95%] +unittests/test_variant.py::variant_Tests::test_variantDateTime1 FAILED [ 95%] +unittests/test_variant.py::variant_Tests::test_variantDateTime2 FAILED [ 95%] +unittests/test_variant.py::variant_Tests::test_variantNone FAILED [ 95%] +unittests/test_variant.py::variant_Tests::test_variantPyObject PASSED [ 95%] +unittests/test_vidmode.py::vidmode_Tests::test_defaultVidmode PASSED [ 95%] +unittests/test_vidmode.py::vidmode_Tests::test_vidmode FAILED [ 95%] +unittests/test_virtualOverride.py::virtualOverride_Tests::test_virtualOverride FAILED [ 95%] +unittests/test_vlbox.py::vlbox_Tests::test_vlbox1 FAILED [ 95%] +unittests/test_vlbox.py::vlbox_Tests::test_vlbox2 PASSED [ 95%] +unittests/test_vlbox.py::vlbox_Tests::test_vlbox3 PASSED [ 95%] +unittests/test_vlbox.py::vlbox_Tests::test_vlbox4 FAILED [ 95%] +unittests/test_vscroll.py::vscroll_Tests::test_vscroll_HScrolledWindow1 FAILED [ 95%] +unittests/test_vscroll.py::vscroll_Tests::test_vscroll_HScrolledWindow2 PASSED [ 95%] +unittests/test_vscroll.py::vscroll_Tests::test_vscroll_HVScrolledWindow1 FAILED [ 95%] +unittests/test_vscroll.py::vscroll_Tests::test_vscroll_HVScrolledWindow2 FAILED [ 95%] +unittests/test_vscroll.py::vscroll_Tests::test_vscroll_VScrolledWindow1 FAILED [ 95%] +unittests/test_vscroll.py::vscroll_Tests::test_vscroll_VScrolledWindow2 FAILED [ 96%] +unittests/test_wacky_ints.py::wacky_ints_Tests::test_wacky1 PASSED [ 96%] +unittests/test_wacky_ints.py::wacky_ints_Tests::test_wacky2 PASSED [ 96%] +unittests/test_wacky_ints.py::wacky_ints_Tests::test_wacky3 PASSED [ 96%] +unittests/test_webkit.py::webkit_Tests::test_webkit01 SKIPPED [ 96%] +unittests/test_webkit.py::webkit_Tests::test_webkit02 SKIPPED [ 96%] +unittests/test_webkit.py::webkit_Tests::test_webkit03 SKIPPED [ 96%] +unittests/test_webkit.py::webkit_Tests::test_webkit04 SKIPPED [ 96%] +unittests/test_webkit.py::webkit_Tests::test_webkit05 SKIPPED [ 96%] +unittests/test_webkit.py::webkit_Tests::test_webkit06 SKIPPED [ 96%] +unittests/test_webkit.py::webkit_Tests::test_webkit07 SKIPPED [ 96%] +unittests/test_webkit.py::webkit_Tests::test_webkit08 SKIPPED [ 96%] +unittests/test_webview.py::webview_Tests::test_webview1 FAILED [ 96%] +unittests/test_webview.py::webview_Tests::test_webview2 FAILED [ 96%] +unittests/test_webview.py::webview_Tests::test_webview3 PASSED [ 96%] +unittests/test_webview.py::webview_Tests::test_webview5 PASSED [ 96%] +unittests/test_webview.py::webview_Tests::test_webview6 FAILED [ 96%] +unittests/test_window.py::WindowTests::test_DLG_UNIT FAILED [ 97%] +unittests/test_window.py::WindowTests::test_SimpleWindowCtor FAILED [ 97%] +unittests/test_window.py::WindowTests::test_windowCoordConvFunctions FAILED [ 97%] +unittests/test_window.py::WindowTests::test_windowFunctions PASSED [ 97%] +unittests/test_window.py::WindowTests::test_windowHandle FAILED [ 97%] +unittests/test_window.py::WindowTests::test_windowProperties PASSED [ 97%] +unittests/test_windowid.py::IdManagerTest::test_WindowIDRef01 FAILED [ 97%] +unittests/test_windowid.py::IdManagerTest::test_WindowIDRef02 FAILED [ 97%] +unittests/test_windowid.py::IdManagerTest::test_idManager PASSED [ 97%] +unittests/test_windowid.py::IdManagerTest::test_newIdRef01 FAILED [ 97%] +unittests/test_windowid.py::IdManagerTest::test_newIdRef02 FAILED [ 97%] +unittests/test_windowid.py::IdManagerTest::test_newIdRef03 FAILED [ 97%] +unittests/test_windowid.py::IdManagerTest::test_newIdRef04 FAILED [ 97%] +unittests/test_windowlist.py::WindowList::test_WindowList_GetChildren FAILED [ 97%] +unittests/test_windowlist.py::WindowList::test_WindowList_GetTLW1 FAILED [ 97%] +unittests/test_windowlist.py::WindowList::test_WindowList_repr FAILED [ 97%] +unittests/test_wizard.py::wizard_Tests::test_wizard1 FAILED [ 97%] +unittests/test_wizard.py::wizard_Tests::test_wizard2 FAILED [ 98%] +unittests/test_wizard.py::wizard_Tests::test_wizard3 FAILED [ 98%] +unittests/test_wizard.py::wizard_Tests::test_wizard4 FAILED [ 98%] +unittests/test_wrapsizer.py::wrapsizer_Tests::test_wrapsize FAILED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetime1 PASSED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetime2 FAILED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetime3 FAILED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetime4 PASSED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeConvertFromPyDate PASSED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeConvertFromPyDatetime FAILED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeConvertHelpers FAILED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeFormatParse FAILED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeGetAmPm FAILED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeParseDate1 FAILED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeParseDate2 PASSED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeParseDate3 FAILED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeParseDateTime1 FAILED [ 98%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeParseDateTime2 FAILED [ 99%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeParseDateTime3 FAILED [ 99%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeParseFormat1 FAILED [ 99%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeParseFormat2 FAILED [ 99%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeParseRfc822Date FAILED [ 99%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeParseTime1 FAILED [ 99%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeProperties FAILED [ 99%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeSet FAILED [ 99%] +unittests/test_wxdatetime.py::datetime_Tests::test_datetimeTm FAILED [ 99%] +unittests/test_xml.py::xml_Tests::test_xml1 FAILED [ 99%] +unittests/test_xml.py::xml_Tests::test_xml2 FAILED [ 99%] +unittests/test_xrc.py::xrc_Tests::test_xrc1 FAILED [ 99%] +unittests/test_xrc.py::xrc_Tests::test_xrc2 PASSED [ 99%] +unittests/test_xrc.py::xrc_Tests::test_xrc3 FAILED [ 99%] +unittests/test_xrc.py::xrc_Tests::test_xrc4 PASSED [ 99%] +unittests/test_xrc.py::xrc_Tests::test_xrc5 FAILED [ 99%] +unittests/test_xrc.py::xrc_Tests::test_xrc6 FAILED [ 99%] +unittests/test_xrc.py::xrc_Tests::test_xrc7 FAILED [100%] + +=================================== FAILURES =================================== +______________________ aboutdlg_Tests.test_aboutdlgNative ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ aboutdlg_Tests.test_aboutdlgProperties ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ accel_Tests.test_accelEntry1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ accel_Tests.test_accelEntry2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ accel_Tests.test_accelFlags __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ accel_Tests.test_accelNullObj _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ accel_Tests.test_accelTable2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ access_Tests.test_access1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ animate_Tests.test_animate1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________________ App.test_App _________________________________ +self = + + def test_App(self): +> app = wx.App() + +unittests/test_app.py:12: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ App.test_App_OnInit ______________________________ +self = + + def test_App_OnInit(self): + class MyApp(wx.App): + def OnInit(self): + self.onInit_called = True + return True +> app = MyApp() + +unittests/test_app.py:19: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = .MyApp object at 0xffff7553d168> +redirect = False, filename = None, useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________________ App.test_CallAfter ______________________________ +self = + + def test_CallAfter(self): + class MyApp(wx.App): + def OnInit(self): + self.callAfter_called = False + self.frame = wx.Frame(None, title="testing CallAfter") + self.frame.Show() + wx.CallAfter(self.doAfter, 1, 2, 3) + return True + def doAfter(self, a, b, c): + self.callAfter_called = True + self.frame.Close() + +> app = MyApp() + +unittests/test_app.py:66: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = .MyApp object at 0xffff7553f168> +redirect = False, filename = None, useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ AppTraitsTests.test_AppTraits _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ artprov_Tests.test_artprovConstants ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ artprov_Tests.test_artprovGetBitmap ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ asserts_Tests.test_asserts2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ asserts_Tests.test_asserts3 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ auibar_Tests.test_auibar01 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ auibar_Tests.test_auibar05 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ auibar_Tests.test_auibar08 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ auibook_Tests.test_auibook01 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ auibook_Tests.test_auibook02 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ auibook_Tests.test_auibook03 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ auibook_Tests.test_auibook04 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ auibook_Tests.test_auibook08 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ auibook_Tests.test_auibook09 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ auibook_Tests.test_auibook10 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ auibook_Tests.test_auibook11 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ auidockart_Tests.test_auidockart02 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ auidockart_Tests.test_auidockart03 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ auiframemanager_Tests.test_auiframemanager01 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ auiframemanager_Tests.test_auiframemanager03 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ auiframemanager_Tests.test_auiframemanager04 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ auiframemanager_Tests.test_auiframemanager05 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ auiframemanager_Tests.test_auiframemanager06 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ auiframemanager_Tests.test_auiframemanager07 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ auiframemanager_Tests.test_auiframemanager08 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ auiframemanager_Tests.test_auiframemanager10 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ auitabmdi_Tests.test_auitabmdi01 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ bannerwindow_Tests.test_bannerwindow2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ BitmapTests.test_BitmapCtor1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ BitmapTests.test_BitmapCtor2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ BitmapTests.test_BitmapCtor4 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ BitmapTests.test_BitmapMask __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ BitmapTests.test_BitmapNullBitmap _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ BitmapTests.test_Bitmap__nonzero__ ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ BitmapTests.test_EmptyBitmapFactory ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ BitmapTests.test_bitmapBufferFactory1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ BitmapTests.test_bitmapBufferFactory2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ BitmapTests.test_bitmapBufferFactory3 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ BitmapTests.test_bitmapBufferFactory4 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ BitmapTests.test_bitmapCopyFromBuffer1 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ BitmapTests.test_bitmapCopyFromBuffer2 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ BitmapTests.test_bitmapCopyFromBuffer3 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ BitmapTests.test_bitmapCopyToBuffer1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ BitmapTests.test_bitmapCopyToBuffer3 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ BitmapTests.test_bitmapEmptyFactory1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ BitmapTests.test_bitmapEmptyFactory2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ BitmapTests.test_bitmapFormatConstants ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ BitmapTests.test_bitmapHandle _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ BitmapTests.test_bitmapSetSize ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ BitmapButtonTests.test_BitmapButtonDefaultCtor ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ bmpcbox_Tests.test_bmpcbox2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ panel_Tests.test_bookctrl2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ BrushTests.test_BrushCtors __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ BrushTests.test_BrushOperators ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ BrushTests.test_StockBrushesExist _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ BrushTests.test_StockBrushesInitialized ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ BrushTests.test_brushOldStyleNames ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ BrushTests.test_nonzero ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ busyinfo_Tests.test_busyinfo1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ busyinfo_Tests.test_busyinfo2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ ButtonTests.test_ButtonCtors _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ButtonTests.test_ButtonDefaultCtor ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ButtonTests.test_ButtonProperties _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ calctrl_Tests.test_calctrl2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ calctrl_Tests.test_calctrl3 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ calctrl_Tests.test_calctrl4 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ calctrl_Tests.test_calevt1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ calctrl_Tests.test_calevt2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ calctrl_Tests.test_genericcalctrl3 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ calctrl_Tests.test_genericcalctrl4 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ caret_Tests.test_caret1 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ caret_Tests.test_caret2 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ checkbox_Tests.test_checkboxDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ CheckListBoxTests.test_CheckBoxCtors _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ CheckListBoxTests.test_pyMethods1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ CheckListBoxTests.test_pyMethods2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ CheckListBoxTests.test_pyProperties ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ choicdlg_Tests.test_choicdlgMulti _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ choicdlg_Tests.test_choicdlgSingleFunc ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ ChoiceTests.test_ChoiceCtors _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ChoiceTests.test_ChoiceDefaultCtor ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ choicebk_Tests.test_choicebk1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ choicebk_Tests.test_choicebk3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ choicebk_Tests.test_choicebk4 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ clipbrd_Tests.test_clipbrd1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ clntdatactnr_Tests.test_clntdatactnr1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ clntdatactnr_Tests.test_clntdatactnr2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ cmdproc_Tests.test_cmdproc1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ cmdproc_Tests.test_cmdproc2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ cmdproc_Tests.test_cmdproc3 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ cmndata_tests.test_PD_PaperSize ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ cmndata_tests.test_nonzero __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ CollapsiblePaneTests.test_CollPaneDefaultCtor _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ CollapsiblePaneTests.test_CollPaneProperties _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ colordlg_Tests.test_colordlg1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ colordlg_Tests.test_colordlg2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ Colour.test_ColourTypemaps __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________________ Colour.test_GetIM _______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ Colour.test_GetPixel _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ Colour.test_converters ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ Colour.test_copy_ctor _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ Colour.test_default_ctor ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ Colour.test_numpy_ctor ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ Colour.test_rgb_ctor _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ Colour.test_rgba_ctor _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ Colour.test_seq_ctor1 _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ Colour.test_seq_ctor2 _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ combo_Tests.test_comboConstants ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ ComboBoxTests.test_ComboBoxCtors _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ ComboBoxTests.test_comboboxSetSelection ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ ComboBoxTests.test_comboboxTextSelection ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ commandlinkbutton_Tests.test_commandlinkbutton2 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ ConfigTests.test_Config3 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ ConfigTests.test_Config4 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ ConfigTests.test_ConfigEnums _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ ControlTests.test_ControlCtors ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ ControlTests.test_ControlDefaultCtor _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ cshelp_Tests.test_cshelp1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ CursorTests.test_CursorCtors _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ CursorTests.test_NullCursor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ CursorTests.test_StockCursorsExist ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ DataObjTests.test_BitmapDataObject ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ DataObjTests.test_CustomDataObject ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ DataObjTests.test_DataFormat _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ DataObjTests.test_DataObject _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ DataObjTests.test_DataObject2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ DataObjTests.test_DataObjectComposite _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ DataObjTests.test_DataObjectGetAllFormats ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ DataObjTests.test_DataObjectSimple1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ DataObjTests.test_DataObjectSimple2 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ DataObjTests.test_DataObjectSimple3 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ DataObjTests.test_FileDataObject _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ DataObjTests.test_HTMLDataObject _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ DataObjTests.test_TextDataObject _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ DataObjTests.test_TextDataObjectClipboard ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ DataObjTests.test_URLDataObject ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewColumn ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewConst _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewCtrl1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ dataview_Tests.test_dataviewEvt1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ dataview_Tests.test_dataviewEvt2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewIconText1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewIconText2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ dataview_Tests.test_dataviewIndexListModel2 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewItem1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewItem2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewItem3 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewItem5 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewItem6 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewItem7 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewItemAttr1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewItemAttr2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewListCtrl1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewListCtrl2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewModel1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dataview_Tests.test_dataviewModel2 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewRenderer01 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewRenderer02 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewRenderer03 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewRenderer04 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewRenderer05 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewRenderer07 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewRenderer08 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewRenderer12 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dataview_Tests.test_dataviewTreeCtrl1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ dataview_Tests.test_dataviewVirtualListModel1 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ dataview_Tests.test_dataviewVirtualModel2 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ datectrl_Tests.test_datectrl1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ datectrl_Tests.test_datectrl2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ datectrl_Tests.test_genericdatectrl1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ datectrl_Tests.test_genericdatectrl2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ dateevt_Tests.test_dateevt1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ dc_Tests.test_ConstantsExist _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ dc_Tests.test_DCBrushChanger _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ dc_Tests.test_DCClipper ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ dc_Tests.test_DCFontChanger __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ dc_Tests.test_DCPenChanger __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dc_Tests.test_DCTextColourChanger _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ dc_Tests.test_FontMetrics ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ dc_Tests.test_NativeGTKHandle _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ dc_Tests.test_NativeHandle __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ dc_Tests.test_NativeMacHandle _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ dc_Tests.test_NativeWinHandle _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ dc_Tests.test_dcContextManager ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ dc_Tests.test_dcFullTextExtents ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ dc_Tests.test_dcPointLists __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ dc_Tests.test_trickyStuff ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dcDrawLists_Tests.test_dcDrawLineLists ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ dcDrawLists_Tests.test_dcDrawPloygonLists ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ dcDrawLists_Tests.test_dcDrawPointLists ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ BufferedDCTests.test_AutoBufferedPaintDC ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ BufferedDCTests.test_BufferedDCConstantsExist _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ BufferedDCTests.test_BufferedDCCtors _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ BufferedDCTests.test_BufferedDCDefaultCtor __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ BufferedDCTests.test_BufferedPaintDC _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ ClientDCTests.test_ClientDC __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ dcgraph_tests.test_GCDC1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ dcgraph_tests.test_GCDC2 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ dcgraph_tests.test_GCDC4 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ MemoryDCTests.test_MemoryDC2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ MemoryDCTests.test_MemoryDC3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ MirrorDCTests.test_MirrorDC1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ ScreenDCTests.test_ScreenDC1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ SvgDCTests.test_SvgDC1 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ deadobj_Tests.test_deadobjException ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ deadobj_Tests.test_deadobj__nonzero__2 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ defs_Tests.test_constants1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ defs_Tests.test_constants2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ dialog_Tests.test_dialog1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ dialog_Tests.test_dialog2 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ dialog_Tests.test_dialogDefaultCtor ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ dialog_Tests.test_dialogTextSizer _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ dirctrl_Tests.test_dirctrlCtor ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ dirctrl_Tests.test_dirctrlDefaultCtor _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ dirctrl_Tests.test_dirctrlFlags ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ dirdlg_Tests.test_dirdlg ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ dnd_Tests.test_dnd1 ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ dnd_Tests.test_dndDropSource _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ dragimag_Tests.test_dragimag1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ dragimag_Tests.test_dragimag2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ dragimag_Tests.test_dragimag3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ dragimag_Tests.test_dragimag4 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ dragimag_Tests.test_dragimag6 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ dragimag_Tests.test_genericdragimag1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ dragimag_Tests.test_genericdragimag2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ dragimag_Tests.test_genericdragimag3 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ dragimag_Tests.test_genericdragimag4 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ dragimag_Tests.test_genericdragimag5 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ dragimag_Tests.test_genericdragimag6 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ dtor_Tests.test_dtor _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ editlbox_Tests.test_editlbox1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ editlbox_Tests.test_editlbox2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ editlbox_Tests.test_editlbox3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ Events.test_ActivateEvent_ctor ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ Events.test_ChildFocusEvent_ctor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ Events.test_ClientData1 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ Events.test_ClientData2 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ Events.test_ClipboardTextEvent_ctor ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ Events.test_CloseEvent_ctor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ Events.test_CommandEvent_ctor _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ Events.test_ContextMenuEvent_ctor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ Events.test_DisplayChangedEvent_ctor _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ Events.test_DropFilesEvent_ctor ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ Events.test_DropFilesEvent_tweaks _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ Events.test_EraseEvent_ctor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ Events.test_EventCategory ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ Events.test_Event_ctor ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ Events.test_FocusEvent_ctor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ Events.test_HelpEvent_ctor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ Events.test_IconizeEvent_ctor _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ Events.test_IdleEvent_ctor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ Events.test_InitDialogEvent_ctor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ Events.test_JoystickEvent_ctor ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ Events.test_KeyEvent_GetUnicodeKey ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ Events.test_KeyEvent_ctor ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ Events.test_MaximizeEvent_ctor ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ Events.test_MenuEvent_ctor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ Events.test_MouseCaptureChangedEvent_ctor ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ Events.test_MouseCaptureLostEvent_ctor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ Events.test_MouseEvent_ctor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ Events.test_MoveEvent_ctor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ Events.test_NavigationKeyEvent_ctor ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ Events.test_NotifyEvent_ctor _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ Events.test_PaletteChangedEvent_ctor _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ Events.test_QueryNewPaletteEvent_ctor _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ Events.test_ScrollEvent_ctor _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ Events.test_ScrollWinEvent_ctor ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ Events.test_ShowEvent_ctor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ Events.test_SizeEvent_ctor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ Events.test_SysColourChangedEvent_ctor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ Events.test_WindowDestroyEvent_ctor ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ Events.test_eventUnbinding1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ Events.test_eventUnbinding2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ Events.test_eventUnbinding3 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ Events.test_evtHandlerSubclass ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ eventfilter_Tests.test_EventFilter_ctor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ eventfilter_Tests.test_EventFilter_subclass __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ fdrepdlg_Tests.test_fdrepdlgConstants _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ fdrepdlg_Tests.test_fdrepdlgDlg ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ filectrl_Tests.test_filectrl1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ filectrl_Tests.test_filectrl2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ filectrl_Tests.test_filectrl3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ filectrl_Tests.test_filectrl4 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ filectrl_Tests.test_filectrl5 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ filedlg_Tests.test_filedlg __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ filedlg_Tests.test_filedlgFlags ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ filedlg_Tests.test_filedlgProperties _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ filedlg_Tests.test_filedlgTweaks _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ filehistory_Tests.test_filehistory1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ filehistory_Tests.test_filehistory2 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ filesys_Tests.test_filesys02 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ filesys_Tests.test_filesys03 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ filesys_Tests.test_filesys04 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ filesys_Tests.test_filesysClasses _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ filesys_Tests.test_filesysMemoryFSHandler ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ font_Tests.test_font _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ font_Tests.test_fontEquality _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ font_Tests.test_fontFixedWidth ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ font_Tests.test_fontFlags ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ font_Tests.test_fontFlagsOld _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ font_Tests.test_fontFontinfo1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ font_Tests.test_fontFontinfo2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ font_Tests.test_fontOk ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ font_Tests.test_fontOldStyleNames _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ font_Tests.test_fontProperties ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ font_Tests.test_stockFonts __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ fontdlg_Tests.test_fontdlg1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ fontenum_Tests.test_fontenum2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ fontenum_Tests.test_fontenum3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ fontmap_Tests.test_fontmap1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ fontmap_Tests.test_fontmap2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ fontmap_Tests.test_fontmap3 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ fontutil_Tests.test_fontutil _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ frame_Tests.test_frameCtors __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ frame_Tests.test_frameProperties _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ frame_Tests.test_frameStyles _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ frame_Tests.test_frameTopLevelTweaks _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ fswatcher_Tests.test_fswatcher1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ gauge_Tests.test_gauge ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ gauge_Tests.test_gaugeProperties _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ gbsizer_Tests.test_GetIM_position _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ gbsizer_Tests.test_GetIM_span _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ gbsizer_Tests.test_gbsizer_pos1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ gbsizer_Tests.test_gbsizer_pos2 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ gbsizer_Tests.test_gbsizer_pos3 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ gbsizer_Tests.test_gbsizer_pos4 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ gbsizer_Tests.test_gbsizer_sizer1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ gbsizer_Tests.test_gbsizer_sizer2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ gbsizer_Tests.test_gbsizer_sizer3 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ gbsizer_Tests.test_gbsizer_span1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ gbsizer_Tests.test_gbsizer_span2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ gbsizer_Tests.test_gbsizer_span3 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ gbsizer_Tests.test_gbsizer_span4 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ intersectRect_Tests.test_intersectRect01 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ graphics_Tests.test_gcCreate1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ graphics_Tests.test_gcCreate2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ graphics_Tests.test_gcCreate4 _________________________ +self = + + def test_gcCreate4(self): + class MyPanel(wx.Panel): + def __init__(self, parent): + super(MyPanel, self).__init__(parent) + self.SetBackgroundStyle(wx.BG_STYLE_PAINT) + self.Bind(wx.EVT_PAINT, self.OnPaint) + self.painted = False + self.gcIsOk = False + + def OnPaint(self, evt): + dc = wx.AutoBufferedPaintDC(self) + gc = wx.GraphicsContext.Create(dc) + self.gcIsOk = gc.IsOk() + self.painted = True + + panel = MyPanel(self.frame) + self.myUpdate(panel) +> self.assertTrue(panel.painted) +E AssertionError: False is not true + +unittests/test_graphics.py:43: AssertionError +______________________ graphics_Tests.test_gcCreateBitmap ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ graphics_Tests.test_gcCreateFont _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ graphics_Tests.test_gcCreateMatrix ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ graphics_Tests.test_gcCreatePath _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ graphics_Tests.test_gcCreatePen ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ graphics_Tests.test_gcDrawLines ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ graphics_Tests.test_gcGradientStops ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ graphics_Tests.test_gcNullObjects _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ graphics_Tests.test_gcStrokeLines1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ graphics_Tests.test_gcStrokeLines3 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ graphics_Tests.test_gcTextExtents _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_GetIM _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid00 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid01 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid02 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid03 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid04 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid05 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid06 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid07 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid08 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid09 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid10 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid11 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid12 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid13 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid14 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid15 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid16 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid17 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ grid_Tests.test_grid17a ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid18 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ grid_Tests.test_grid18a ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid19 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid22 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid23 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid24 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid27 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid28 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid29 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid30 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid32 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid33 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid34 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid35 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid36 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid37 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid38 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid39 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid40 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid41 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid42 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid43 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid44 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ grid_Tests.test_grid45 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ headercol_Tests.test_headercolAbsClass1 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ headercol_Tests.test_headercolAbsClass2 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ headercol_Tests.test_headercolConstants ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ headercol_Tests.test_headercolCtor1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ headercol_Tests.test_headercolCtor2 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ headercol_Tests.test_headercolProperties ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ headerctrl_Tests.test_headerctrl1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ headerctrl_Tests.test_headerctrl2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ headerctrl_Tests.test_headerctrl3 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ headerctrl_Tests.test_headerctrl4 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ help_Tests.test_help1 _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ helpdata_Tests.test_helpdata1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ helpdata_Tests.test_helpdata2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ helpdata_Tests.test_helpdata3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ helpext_Tests.test_helpext1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ helpfrm_Tests.test_helpfrm1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmlcell_Tests.test_htmlcell1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmlcell_Tests.test_htmlcell2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmlcell_Tests.test_htmlcell3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmlcell_Tests.test_htmlcell4 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmlcell_Tests.test_htmlcell5 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmlcell_Tests.test_htmlcell6 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmlcell_Tests.test_htmlcell7 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmlcell_Tests.test_htmlcell8 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmlcell_Tests.test_htmlcell9 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmldefs_Tests.test_htmldefs1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmllbox_Tests.test_htmllbox1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmllbox_Tests.test_htmllbox2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ htmlpars_Tests.test_htmlpars1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ htmlprint_Tests.test_htmlprint1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ htmlprint_Tests.test_htmlprint2 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ htmlprint_Tests.test_htmlprint3 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ htmlwin_Tests.test_htmlwin1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ htmlwin_Tests.test_htmlwin2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ htmlwin_Tests.test_htmlwin3 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ htmlwin_Tests.test_htmlwin5 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ htmlwin_Tests.test_htmlwin6 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ htmlwinpars_Tests.test_htmlwinpars1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ hyperlink_Tests.test_hyperlink1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ hyperlink_Tests.test_hyperlink2 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ hyperlink_Tests.test_hyperlink3 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ icon_Tests.test_icon1 _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ icon_Tests.test_icon2 _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ iconbndl_Tests.test_iconbndl1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ iconbndl_Tests.test_iconbndl2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ iconbndl_Tests.test_iconbndl3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ iconloc_Tests.test_iconloc1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ iconloc_Tests.test_iconloc2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor3 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor4 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor4b _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor4c _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor5 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor5b _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor6 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor7 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor8 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageCtor9 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ image_Tests.test_imageGetAlpha ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ image_Tests.test_imageGetAlphaDataBuffer ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ image_Tests.test_imageGetDataBuffer ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ image_Tests.test_imageHandlerDerivation ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ image_Tests.test_imageHandlerStandardDerivations _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ image_Tests.test_imageMethodChain _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ image_Tests.test_imageNestedClasses ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ image_Tests.test_imageOtherStuff _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ image_Tests.test_imageProperties _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ image_Tests.test_imageRGBHSV _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ image_Tests.test_imageSetAlpha1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ image_Tests.test_imageSetData1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ image_Tests.test_imageSetDataBuffer1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ image_Tests.test_imageSetDataBuffer2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ image_Tests.test_imaglist ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ image_Tests.test_imaglistConstants ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ infobar_Tests.test_infobar1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ infobar_Tests.test_infobar2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ infobar_Tests.test_infobarCtor ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ intl_Tests.test_intlGetString _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ intl_Tests.test_intlLanguageInfo _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ intl_Tests.test_intlLocale __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ layout_Tests.test_layout ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ laywin_Tests.test_laywin1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ laywin_Tests.test_laywin2 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ laywin_Tests.test_laywin3 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ laywin_Tests.test_laywin4 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ laywin_Tests.test_laywin5 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____ lib_agw_advancedsplash_Tests.test_lib_agw_advancedsplashConstantsExist ____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_advancedsplash_Tests.test_lib_agw_advancedsplashCtor _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_aquabutton_Tests.test_lib_agw_aquabuttonCtor _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________ lib_agw_aquabutton_Tests.test_lib_agw_aquabuttonMethods ____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ lib_agw_aui_Tests.test_lib_agw_auiCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_aui_additional_Tests.test_lib_agw_auiEvents ______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________ lib_agw_aui_additional_Tests.test_lib_agw_aui_ToolbarCtor ___________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________ lib_agw_aui_dockart_Tests.test_lib_agw_aui_dockartCtor ____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) - 1 failed, 766 passed, 6 skipped, 21 deselected, 1 xfailed, 68 warnings in 402.15 seconds +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_aui_tabart_Tests.test_lib_agw_aui_tabartCtor _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_aui_utilities_Tests.test_lib_agw_aui_utilititiesCtor _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________ lib_agw_balloontip_Tests.test_lib_agw_balloontipConstantsExist ________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_balloontip_Tests.test_lib_agw_balloontipCtor _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________ lib_agw_balloontip_Tests.test_lib_agw_balloontipMethods ____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_agw_buttonpanel_Tests.test_lib_agw_buttonpanelConstantsExist _______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________ lib_agw_buttonpanel_Tests.test_lib_agw_buttonpanelCtor ____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________ lib_agw_buttonpanel_Tests.test_lib_agw_buttonpanelMethods ___________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_agw_cubecolourdialog_Tests.test_lib_agw_cubecolourdialogMethods ______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_customtreectrl_Tests.test_lib_agw_customtreectrlCtor _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_agw_customtreectrl_Tests.test_lib_agw_customtreectrlEventsExist ______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____ lib_agw_customtreectrl_Tests.test_lib_agw_customtreectrlGetSelections _____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______ lib_agw_customtreectrl_Tests.test_lib_agw_customtreectrlItemCheck _______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______ lib_agw_customtreectrl_Tests.test_lib_agw_customtreectrlSetWindow _______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_agw_customtreectrl_Tests.test_lib_agw_customtreectrlTreeItemData _____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____ lib_agw_customtreectrl_Tests.test_lib_agw_customtreectrlTreeItemPyData ____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ lib_agw_flatmenu_Tests.test_lib_agw_flatmenuCtor _______________ +self = + + def setUp(self): + ''' + Monkey patch some methods which don't behave well without + a MainLoop. We could restore them in tearDown, but there's + no need because self.frame will be destroyed in tearDown. + ''' +> super(lib_agw_flatmenu_Tests, self).setUp() + +unittests/test_lib_agw_flatmenu.py:17: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________ lib_agw_flatnotebook_Tests.test_lib_agw_flatnotebookCtor ___________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_agw_flatnotebook_Tests.test_lib_agw_flatnotebookDeletePages ________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_flatnotebook_Tests.test_lib_agw_flatnotebookMethods __________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________ lib_agw_flatnotebook_Tests.test_lib_agw_flatnotebookTabStyles _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_floatspin_Tests.test_lib_agw_floatspinConstantsExist _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_agw_floatspin_Tests.test_lib_agw_floatspinCtor ______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_floatspin_Tests.test_lib_agw_floatspinEvents _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________ lib_agw_floatspin_Tests.test_lib_agw_floatspin_fixedpoint ___________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______ lib_agw_foldpanelbar_Tests.test_lib_agw_foldpanelbarConstantsExist ______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________ lib_agw_foldpanelbar_Tests.test_lib_agw_foldpanelbarCtor ___________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_foldpanelbar_Tests.test_lib_agw_foldpanelbarMethods __________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___ lib_agw_fourwaysplitter_Tests.test_lib_agw_fourwaysplitterConstantsExist ___ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________ lib_agw_fourwaysplitter_Tests.test_lib_agw_fourwaysplitterCtor ________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_agw_fourwaysplitter_Tests.test_lib_agw_fourwaysplitterEvents _______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______ lib_agw_fourwaysplitter_Tests.test_lib_agw_fourwaysplitterMethods _______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_ lib_agw_genericmessagedialog_Tests.test_lib_agw_genericmessagedialogMethods __ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_gradientbutton_Tests.test_lib_agw_gradientbuttonCtor _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_agw_gradientbutton_Tests.test_lib_agw_gradientbuttonMethods ________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_agw_hyperlink_Tests.test_lib_agw_hyperlinkCtor ______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_hyperlink_Tests.test_lib_agw_hyperlinkEvents _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________ lib_agw_hyperlink_Tests.test_lib_agw_hyperlinkMethods _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________ lib_agw_hypertreelist_Tests.test_lib_agw_hypertreelistCtor __________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_hypertreelist_Tests.test_lib_agw_hypertreelistEvents _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________ lib_agw_hypertreelist_Tests.test_lib_agw_hypertreelistTreeItem ________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ lib_agw_infobar_Tests.test_lib_agw_infobar1 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ lib_agw_infobar_Tests.test_lib_agw_infobar2 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ lib_agw_infobar_Tests.test_lib_agw_infobarCtor ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________ lib_agw_knobctrl_Tests.test_lib_agw_knobctrlConstantsExist __________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_agw_knobctrl_Tests.test_lib_agw_knobctrlEvents ______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_knobctrl_Tests.test_lib_agw_knobctrlMethods ______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_labelbook_Tests.test_lib_agw_labelbookConstantsExist _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_agw_labelbook_Tests.test_lib_agw_labelbookCtor ______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________ lib_agw_labelbook_Tests.test_lib_agw_labelbookDeletePages ___________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_labelbook_Tests.test_lib_agw_labelbookEvents _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_labelbook_Tests.test_lib_agw_labelbookPages ______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________ lib_agw_labelbook_Tests.test_lib_agw_labelbookTabPosition ___________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____ lib_agw_multidirdialog_Tests.test_lib_agw_multidirdialogConstantsExist ____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_multidirdialog_Tests.test_lib_agw_multidirdialogCtor _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_agw_multidirdialog_Tests.test_lib_agw_multidirdialogMethods ________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_peakmeter_Tests.test_lib_agw_peakmeterConstantsExist _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_agw_peakmeter_Tests.test_lib_agw_peakmeterCtor ______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________ lib_agw_peakmeter_Tests.test_lib_agw_peakmeterMethods _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused + lib_agw_persist_persistencemanager_Tests.test_persistencemanagerConstantsExist +self = + + def setUp(self): +> super(lib_agw_persist_persistencemanager_Tests, self).setUp() + +unittests/test_lib_agw_persist_persistencemanager.py:14: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_agw_persist_persistencemanager_Tests.test_persistencemanagerCtor _____ +self = + + def setUp(self): +> super(lib_agw_persist_persistencemanager_Tests, self).setUp() + +unittests/test_lib_agw_persist_persistencemanager.py:14: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_ lib_agw_persist_persistencemanager_Tests.test_persistencemanagerPersistValue _ +self = + + def setUp(self): +> super(lib_agw_persist_persistencemanager_Tests, self).setUp() + +unittests/test_lib_agw_persist_persistencemanager.py:14: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___ lib_agw_persist_persistencemanager_Tests.test_persistencemanagerRestore ____ +self = + + def setUp(self): +> super(lib_agw_persist_persistencemanager_Tests, self).setUp() + +unittests/test_lib_agw_persist_persistencemanager.py:14: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_ lib_agw_persist_persistencemanager_Tests.test_persistencemanagerZZZZCleanup __ +self = + + def setUp(self): +> super(lib_agw_persist_persistencemanager_Tests, self).setUp() + +unittests/test_lib_agw_persist_persistencemanager.py:14: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ lib_agw_piectrl_Tests.test_lib_agw_piectrlCtor ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_agw_piectrl_Tests.test_lib_agw_piectrlMethods _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_pybusyinfo_Tests.test_lib_agw_pybusyinfoCtor _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_ lib_agw_pycollapsiblepane_Tests.test_lib_agw_pycollapsiblepaneConstantsExist _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_agw_pycollapsiblepane_Tests.test_lib_agw_pycollapsiblepaneEvents _____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____ lib_agw_pycollapsiblepane_Tests.test_lib_agw_pycollapsiblepaneMethods _____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ lib_agw_pygauge_Tests.test_lib_agw_pygaugeCtor ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_agw_pygauge_Tests.test_lib_agw_pygaugeMethods _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_agw_pyprogress_Tests.test_lib_agw_pyprogressConstantsExists ________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_pyprogress_Tests.test_lib_agw_pyprogressCtor _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________ lib_agw_pyprogress_Tests.test_lib_agw_pyprogressMethods ____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_ribbon_Tests.test_lib_agw_pyprogressConstantsExists __________ +self = + + def setUp(self): +> super(lib_agw_ribbon_Tests, self).setUp() + +unittests/test_lib_agw_ribbonbar.py:40: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_ribbon_Tests.test_lib_agw_ribbonArtProviders _____________ +self = + + def setUp(self): +> super(lib_agw_ribbon_Tests, self).setUp() + +unittests/test_lib_agw_ribbonbar.py:40: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_ribbon_Tests.test_lib_agw_ribbonControlCtor ______________ +self = + + def setUp(self): +> super(lib_agw_ribbon_Tests, self).setUp() + +unittests/test_lib_agw_ribbonbar.py:40: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ lib_agw_ribbon_Tests.test_lib_agw_ribbonCtor _________________ +self = + + def setUp(self): +> super(lib_agw_ribbon_Tests, self).setUp() + +unittests/test_lib_agw_ribbonbar.py:40: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ lib_agw_ribbon_Tests.test_lib_agw_ribbonEvents ________________ +self = + + def setUp(self): +> super(lib_agw_ribbon_Tests, self).setUp() + +unittests/test_lib_agw_ribbonbar.py:40: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_ribbon_Tests.test_lib_agw_ribbonGalleryCtor ______________ +self = + + def setUp(self): +> super(lib_agw_ribbon_Tests, self).setUp() + +unittests/test_lib_agw_ribbonbar.py:40: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ lib_agw_ribbon_Tests.test_lib_agw_ribbonPageCtor _______________ +self = + + def setUp(self): +> super(lib_agw_ribbon_Tests, self).setUp() + +unittests/test_lib_agw_ribbonbar.py:40: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_agw_ribbon_Tests.test_lib_agw_ribbonPanelCtor _______________ +self = + + def setUp(self): +> super(lib_agw_ribbon_Tests, self).setUp() + +unittests/test_lib_agw_ribbonbar.py:40: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ lib_agw_ribbon_Tests.test_lib_agw_ribbonStyles ________________ +self = + + def setUp(self): +> super(lib_agw_ribbon_Tests, self).setUp() + +unittests/test_lib_agw_ribbonbar.py:40: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_agw_rulerctrl_Tests.test_lib_agw_rulerctrlCtor ______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_rulerctrl_Tests.test_lib_agw_rulerctrlEvents _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________ lib_agw_shortcuteditor_Tests.test_lib_agw_rulerctrlCtor ____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________ lib_agw_speedmeter_Tests.test_lib_agw_peakmeterConstantsExist _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________ lib_agw_speedmeter_Tests.test_lib_agw_speedmeterCtor _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________ lib_agw_speedmeter_Tests.test_lib_agw_speedmeterMethods ____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_speedmeter_Tests.test_lib_agw_speedmeterSizerLayout __________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________ lib_agw_supertooltip_Tests.test_lib_agw_supertooltipCtor ___________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________ lib_agw_thumbnailctrl_Tests.test_lib_agw_thumbnailctrlCtor __________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________ lib_agw_thumbnailctrl_Tests.test_lib_agw_thumbnailctrlEvents _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_agw_ultimatelistctrl_Tests.test_lib_agw_ultimatelistctrlCtorIcon _____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_agw_ultimatelistctrl_Tests.test_lib_agw_ultimatelistctrlCtorList _____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____ lib_agw_ultimatelistctrl_Tests.test_lib_agw_ultimatelistctrlCtorReport ____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___ lib_agw_ultimatelistctrl_Tests.test_lib_agw_ultimatelistctrlCtorVirtual ____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______ lib_agw_ultimatelistctrl_Tests.test_lib_agw_ultimatelistctrlEvents ______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ lib_agw_xlsgrid_Tests.test_lib_agw_xlsgridCtor ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________ lib_agw_zoombar_Tests.test_lib_agw_thumbnailctrlEvents ____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ lib_agw_zoombar_Tests.test_lib_agw_zoombarCtor ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ lib_busy_Tests.test_lib_busy1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ lib_busy_Tests.test_lib_busy2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ lib_busy_Tests.test_lib_busy3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ lib_busy_Tests.test_lib_busy4 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ lib_busy_Tests.test_lib_busy5 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_calendar_Tests.test_lib_calendar_CalenDlgCtor _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ lib_calendar_Tests.test_lib_calendar_CalendarCtor _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ lib_cdate_Tests.test_lib_cdate_DateCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ lib_cdate_Tests.test_lib_cdate_Dayofweek ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ lib_cdate_Tests.test_lib_cdate_IsleapFalse __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ lib_cdate_Tests.test_lib_cdate_IsleapTrue ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ lib_cdate_Tests.test_lib_cdate_Julianday ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ lib_cdate_Tests.test_lib_cdate_NowCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ lib_colourdb_Tests.test_lib_colourdb1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ lib_expando_Tests.test_lib_expando1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ lib_fancytext_Tests.test_lib_fancytext_DateCtor ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ lib_fancytext_Tests.test_lib_fancytext_Methods ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ testCreator.testArrayConstruction _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testCreator.testCreates ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testCreator.testDataType ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testCreator.testMinMax ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testCreator.testMinMax2 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testCreator.testMinMax3 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testCreator.testMinMax4 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testCreator.testShape _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testCreator.testShape2 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testCreator.testShape3 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ testCreator.testType _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testAsBBox.testPassArray ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testAsBBox.testPassArray2 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testAsBBox.testPassThrough __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testAsBBox.testPassThrough2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testIntersect.testBelow ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testIntersect.testCorner ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testIntersect.testInside ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testIntersect.testLeft ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testIntersect.testLowerLeft __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testIntersect.testLowerRight _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testIntersect.testSame ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testIntersect.testTouch ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testIntersect.testUpperLeft __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testIntersect.testUpperRight _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testIntersect.testZeroSize __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testIntersect.testZeroSize2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testIntersect.testZeroSize3 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testIntersect.testZeroSize4 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testEquality.testIdentical __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testEquality.testNotSame ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testEquality.testSame _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testEquality.testWithArray __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testEquality.testWithArray2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ testInside.testAbove _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testInside.testPointOutside __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ testInside.testRight _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ testInside.testSame ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testPointInside.testAbove ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testPointInside.testLeft ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ testPointInside.testLowerLeft _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ testPointInside.testLowerRight ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testPointInside.testPointIn __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ testPointInside.testPointOnBottomRight ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ testPointInside.testPointOnLeft ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ testPointInside.testPointOnTopLine ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ testPointInside.testUpperLeft _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ testPointInside.testUpperRight ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testFromPoints.testCreate ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ testFromPoints.testCreateInts _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ testFromPoints.testListTuples _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ testFromPoints.testSinglePoint ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testMerge.testDownLeft ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ testMerge.testInside _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testWidthHeight.testSetH ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testWidthHeight.testWidth ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testCenter.testSetCenter ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ testBBarray.testJoin _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testNullBBox.testEquals ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testNullBBox.testIsNull ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testNullBBox.testMerge ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testNullBBox.testNotEquals __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ testNullBBox.testNotEquals2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testNullBBox.testOverlaps ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testNullBBox.testOverlaps2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testNullBBox.testValues ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testInfBBox.testEquals ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testInfBBox.testMerge2 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testInfBBox.testNotEquals ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testInfBBox.testNotEquals2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ testInfBBox.testOverlaps ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testInfBBox.testOverlaps2 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testInfBBox.testOverlaps3 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testInfBBox.testOverlaps4 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ testInfBBox.testOverlaps5 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ testInfBBox.testValues ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ testSides.testBottom _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________________ testSides.testLeft ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________________ testSides.testTop _______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_arc _________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_arrow ________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_arrowline ______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_bitmap _______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_circle _______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_line ________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_point ________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_pointset ______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_polygon _______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_rectangle ______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_recteclips _____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_scaledbitmap2 ____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_scaledtext _____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_fc_spline _______ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_floatcanvasEvents ___ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____ lib_floatcanvas_floatcanvas_Tests.test_lib_floatcanvas_navcanvasCtor _____ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ lib_gizmos_ledctrl_Tests.test_normalCtor ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ imagebrowser_Tests.test_imagebrowserDlg ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ imagebrowser_Tests.test_imagebrowserDlgChangeTypes ______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ imagebrowser_Tests.test_imagebrowserDlgGetters ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ lib_imageutils_Tests.test_lib_imageutils1 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ IntCtrlTests.test_canSetValueToNone ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ IntCtrlTests.test_intctrlCtor _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ langlistctrl_Tests.test_langlistctrlCtor ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ MaskedComboBoxTests.test_ComboBoxCtors ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ MaskedTextCtrlTests.test_textctrlProperties __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ MaskedNumCtrlTests.test_numctrlCtor ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ MaskedNumCtrlTests.test_numctrlProperties ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ MaskedTimeCtrlTests.test_timectrlCtor _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ MaskedTimeCtrlTests.test_timectrlIsValid ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ MaskedIpAddrCtrlTests.test_ipaddrctrlCtor ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ MaskedIpAddrCtrlTests.test_ipaddrctrlProperties ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ wit_TestCase.test_App _____________________________ +self = + + def test_App(self): +> app = wit.InspectableApp() + +unittests/test_lib_mixins_inspection.py:31: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = +redirect = False, filename = None, useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ wit_TestCase.test_App_OnInit _________________________ +self = + + def test_App_OnInit(self): + class MyApp(wit.InspectableApp): + def OnInit(self): + self.onInit_called = True + self.ShowInspectionTool() + return True +> app = MyApp() + +unittests/test_lib_mixins_inspection.py:39: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = .MyApp object at 0xffff75352798> +redirect = False, filename = None, useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ lib_ogl_Tests.test_lib_oglCircle _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ lib_ogl_Tests.test_lib_oglCompositeShape ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ lib_ogl_Tests.test_lib_oglEllipseShape ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ lib_ogl_Tests.test_lib_oglLineShape ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ lib_ogl_Tests.test_lib_oglPolygonShape ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ lib_ogl_Tests.test_lib_oglRectangle ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ lib_ogl_Tests.test_lib_oglTextShape ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ lib_ogl_Tests.test_lib_ogl_Constants _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________ lib_plot_PlotCanvas_Tests.test_lib_plot_plotcanvasCtor ____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________ lib_plot_Tests.test_lib_plot_tempstyle_contextmanager _____________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ lib_plot_Tests.test_lib_plot_tempstyle_decorator _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ lib_pubsub_Except.test1 ____________________________ +self = + + def test1(self): + + self.pub.addTopicDefnProvider(my_topics, self.pub.TOPIC_TREE_FROM_CLASS) + + + provString = """ + class rootTopic1: + class subtopic_1: + class subsubtopic_11: + ''' + Sub sub topic 1 of sub topic 1. Only need to doc the + extra args. + ''' + def msgDataSpec(arg1, arg3, arg2=None, arg4=None): + ''' + - arg3: doc for arg3 + - arg4: doc for arg4 + ''' + pass + + """ + + self.pub.addTopicDefnProvider(provString, +> format=self.pub.TOPIC_TREE_FROM_STRING) + +unittests/test_lib_pubsub_provider.py:75: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +build/lib.linux-arm64-3.7/wx/lib/pubsub/core/topicmgr.py:116: in addDefnProvider + provider = TopicDefnProvider(source, format or TOPIC_TREE_FROM_MODULE) +build/lib.linux-arm64-3.7/wx/lib/pubsub/core/topicdefnprovider.py:349: in __init__ + provider.doneIter() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = + + def doneIter(self): + self.__modDeserial.doneIter() + # remove the temporary module and its compiled version (*.pyc) + os.remove(self.__filename) + try: # py3.2+ uses special folder/filename for .pyc files + from imp import cache_from_source +> os.remove(cache_from_source(self.__filename)) +E FileNotFoundError: [Errno 2] No such file or directory: '/build/wxpython4.0-4.0.4+dfsg/__pycache__/tmp_export_topics_s2hqghuf.cpython-37.pyc' + +build/lib.linux-arm64-3.7/wx/lib/pubsub/core/topicdefnprovider.py:301: FileNotFoundError +_________________ lib_resizewidget_Tests.test_lib_resizewidget _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ sizedFrame_Tests.test_frameStyles _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ sizedDialog_Tests.test_dialog1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ splitter_Tests.test_splitterCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ splitter_Tests.test_splitterMulti _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ lib_statbmp_Tests.test_lib_statbmp1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ lib_stattext_Tests.test_lib_stattext1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ lib_throbber_Tests.test_lib_throbber _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ lib_ticker_Tests.test_lib_ticker _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ listbook_Tests.test_listbook2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ listbook_Tests.test_listbook3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ listbox_Tests.test_ComboBoxDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ listctrl_Tests.test_listctrlConstants _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ listctrl_Tests.test_listctrlDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ listctrl_Tests.test_listctrlItemData01 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ listctrl_Tests.test_listctrlItemData02 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________________ log_Tests.test_log ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ mdi_Tests.test_mdiClientWindow ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ mdi_Tests.test_mdiParentFrame1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ mdi_Tests.test_mdiParentFrame2 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ mediactrl_Tests.test_mediactrl2 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ mediactrl_Tests.test_mediactrl3 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ mediactrl_Tests.test_mediactrl4 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ mediactrl_Tests.test_mediactrl5 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ menu_Tests.test_menu1 _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ menu_Tests.test_menu3 _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ menu_Tests.test_menuBar1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ menu_Tests.test_menuBar2 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ menu_Tests.test_menuBar3 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ menuitem_Tests.test_menuitemKinds _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ mimetype_Tests.test_mimetype1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ mimetype_Tests.test_mimetype2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ mimetype_Tests.test_mimetype3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ mimetype_Tests.test_mimetype4 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ mimetype_Tests.test_mimetype5 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ minifram_Tests.test_minifram1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ modalhook_Tests.test_modalhook1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ msgdlg_Tests.test_gmsgdlg1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ msgdlg_Tests.test_gmsgdlg3 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ msgdlg_Tests.test_msgdlg1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ msgdlg_Tests.test_msgdlg2 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ msgdlg_Tests.test_msgdlg3 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ msgdlg_Tests.test_msgdlgIconConstants _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ msgdlg_Tests.test_msgdlgLabels1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ msgdlg_Tests.test_msgdlgLabels2 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ msgdlg_Tests.test_msgdlgProperties ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ TestMustHaveApp.test_mustHaveApp1 _______________________ +self = + + def test_mustHaveApp1(self): + """Create App and then create a frame""" +> app = wx.App() + +unittests/test_mustHaveApp.py:18: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ notebook_Tests.test_notebookCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ notebook_Tests.test_notebookDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ notebook_Tests.test_notebookEventTypes ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ odcombo_Tests.test_odcombo1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ odcombo_Tests.test_odcombo2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ overlay_Tests.test_overlay1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ palette_Tests.test_nullPalette ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ palette_Tests.test_paletteCreate1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ palette_Tests.test_paletteCreate2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ palette_Tests.test_paletteCtor1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ palette_Tests.test_paletteCtor2 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ palette_Tests.test_paletteCtor3 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ palette_Tests.test_paletteCtor4 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ panel_Tests.test_panelCtor __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ panel_Tests.test_panelDefaultCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ pen_Tests.test_penConstants __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ pen_Tests.test_penCtor2 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ pen_Tests.test_penCtor3 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ pen_Tests.test_penNonzero ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ pen_Tests.test_penNull ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ pen_Tests.test_penStock ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ pgvariant_Tests.test_pgvariant3 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ pgvariant_Tests.test_pgvariant4 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ pgvariant_Tests.test_pgvariant5 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ pgvariant_Tests.test_pgvariant6 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ pgvariant_Tests.test_pgvariant8 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ pgvariant_Tests.test_pgvariant9 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ PIImportTest.test_adv_pi ___________________________ +self = + + def test_adv_pi(self): +> self.runPI('adv.pyi') + +unittests/test_pi_import.py:39: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "adv.pyi", line 28, in \n import wx\nModuleNotFoundError: No module named \'wx\'\n' +________________________ PIImportTest.test_dataview_pi _________________________ +self = + + def test_dataview_pi(self): +> self.runPI('dataview.pyi') + +unittests/test_pi_import.py:51: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "dataview.pyi", line 27, in \n import wx\nModuleNotFoundError: No module named \'wx\'\n' +________________________ PIImportTest.test_glcanvas_pi _________________________ +self = + + def test_glcanvas_pi(self): +> self.runPI('glcanvas.pyi') + +unittests/test_pi_import.py:63: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "glcanvas.pyi", line 25, in \n import wx\nModuleNotFoundError: No module named \'wx\'\n' +__________________________ PIImportTest.test_html2_pi __________________________ +self = + + def test_html2_pi(self): +> self.runPI('html2.pyi') + +unittests/test_pi_import.py:48: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "html2.pyi", line 30, in \n import wx\nModuleNotFoundError: No module named \'wx\'\n' +__________________________ PIImportTest.test_html_pi ___________________________ +self = + + def test_html_pi(self): +> self.runPI('html.pyi') + +unittests/test_pi_import.py:45: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "html.pyi", line 33, in \n import wx\nModuleNotFoundError: No module named \'wx\'\n' +__________________________ PIImportTest.test_media_pi __________________________ +self = + + def test_media_pi(self): +> self.runPI('media.pyi') + +unittests/test_pi_import.py:69: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "media.pyi", line 28, in \n import wx\nModuleNotFoundError: No module named \'wx\'\n' +________________________ PIImportTest.test_propgrid_pi _________________________ +self = + + def test_propgrid_pi(self): +> self.runPI('propgrid.pyi') + +unittests/test_pi_import.py:72: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "propgrid.pyi", line 21, in \n import wx\nModuleNotFoundError: No module named \'wx\'\n' +_________________________ PIImportTest.test_ribbon_pi __________________________ +self = + + def test_ribbon_pi(self): +> self.runPI('ribbon.pyi') + +unittests/test_pi_import.py:75: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "ribbon.pyi", line 29, in \n import wx\nModuleNotFoundError: No module named \'wx\'\n' +________________________ PIImportTest.test_richtext_pi _________________________ +self = + + def test_richtext_pi(self): +> self.runPI('richtext.pyi') + +unittests/test_pi_import.py:60: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "richtext.pyi", line 31, in \n import wx.xml\nModuleNotFoundError: No module named \'wx\'\n' +___________________________ PIImportTest.test_stc_pi ___________________________ +self = + + def test_stc_pi(self): +> self.runPI('stc.pyi') + +unittests/test_pi_import.py:42: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "stc.pyi", line 27, in \n import wx\nModuleNotFoundError: No module named \'wx\'\n' +___________________________ PIImportTest.test_xml_pi ___________________________ +self = + + def test_xml_pi(self): +> self.runPI('xml.pyi') + +unittests/test_pi_import.py:54: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "xml.pyi", line 28, in \n import wx\nModuleNotFoundError: No module named \'wx\'\n' +___________________________ PIImportTest.test_xrc_pi ___________________________ +self = + + def test_xrc_pi(self): +> self.runPI('xrc.pyi') + +unittests/test_pi_import.py:57: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/test_pi_import.py:32: in runPI + self.assertEqual(sp.returncode, 0, stdout) +E AssertionError: 1 != 0 : b'Traceback (most recent call last):\n File "xrc.pyi", line 24, in \n import wx.xml\nModuleNotFoundError: No module named \'wx\'\n' +_______________________ pickers_Tests.test_pickersColour _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ pickers_Tests.test_pickersColourConstants ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ pickers_Tests.test_pickersDir _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ pickers_Tests.test_pickersFile ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ pickers_Tests.test_pickersFileConstants ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ pickers_Tests.test_pickersFont ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ pickers_Tests.test_pickersFontConstatnt ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ platinfo_Tests.test_platinfo _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ platinfo_Tests.test_platinfoProperties ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ popupwin_Tests.test_popupwinCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ position_Tests.test_GetIM ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ position_Tests.test_positionCopyCtor _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ position_Tests.test_positionCtors _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ position_Tests.test_positionMath1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ position_Tests.test_positionProperties1 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ position_Tests.test_positionProperties2 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ preferences_Tests.test_preferences1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ printfw_Tests.test_printfw1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ printfw_Tests.test_printfw2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ process_Tests.test_process1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ process_Tests.test_process2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ progdlg_Tests.test_progdlg1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ propdlg_Tests.test_propdlg1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ propdlg_Tests.test_propgrid2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ propdlg_Tests.test_propgrid3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ propdlg_Tests.test_propgrid4 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ propgrid_Tests.test_propgrid02 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ propgrid_Tests.test_propgrid03 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ propgridadvprops_Tests.test_propgridadvprops01 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ propgridadvprops_Tests.test_propgridadvprops02 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ propgridadvprops_Tests.test_propgridadvprops03 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ propgridadvprops_Tests.test_propgridadvprops07 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ propgridadvprops_Tests.test_propgridadvprops08 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ propgridadvprops_Tests.test_propgridadvprops09 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ propgridadvprops_Tests.test_propgridadvprops10 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ propgriddefs_Tests.test_propgriddefs1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ propgrideditors_Tests.test_propgrideditors01 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ propgrideditors_Tests.test_propgrideditors03 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ propgrideditors_Tests.test_propgrideditors04 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ propgrideditors_Tests.test_propgrideditors05 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ propgrideditors_Tests.test_propgrideditors06 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ propgrideditors_Tests.test_propgrideditors07 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ propgrideditors_Tests.test_propgrideditors08 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ propgrideditors_Tests.test_propgrideditors09 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ propgrideditors_Tests.test_propgrideditors10 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ propgrideditors_Tests.test_propgrideditors11 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridiface_Tests.test_propgridiface02 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridiface_Tests.test_propgridiface03 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ propgridpagestate_Tests.test_propgridpagestate01 _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ propgridpagestate_Tests.test_propgridpagestate02 _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ propgridpagestate_Tests.test_propgridpagestate03 _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ propgridpagestate_Tests.test_propgridpagestate04 _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ property_Tests.test_propgridproperty01 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ property_Tests.test_propgridproperty02 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ property_Tests.test_propgridproperty03 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ property_Tests.test_propgridproperty04 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ property_Tests.test_propgridproperty06 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ property_Tests.test_propgridproperty08 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ property_Tests.test_propgridproperty09 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ property_Tests.test_propgridproperty11 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops02 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops03 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops04 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops05 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops06 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops07 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops08 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops09 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops10 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops11 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops12 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ propgridprops_Tests.test_propgridprops18 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ pseudodc_Tests.test_pseudodc01 ________________________ +self = + + def setUp(self): +> super(pseudodc_Tests, self).setUp() + +unittests/test_pseudodc.py:13: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ pseudodc_Tests.test_pseudodc02 ________________________ +self = + + def setUp(self): +> super(pseudodc_Tests, self).setUp() + +unittests/test_pseudodc.py:13: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ pseudodc_Tests.test_pseudodc03 ________________________ +self = + + def setUp(self): +> super(pseudodc_Tests, self).setUp() + +unittests/test_pseudodc.py:13: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ pseudodc_Tests.test_pseudodc04 ________________________ +self = + + def setUp(self): +> super(pseudodc_Tests, self).setUp() + +unittests/test_pseudodc.py:13: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ pseudodc_Tests.test_pseudodc05 ________________________ +self = + + def setUp(self): +> super(pseudodc_Tests, self).setUp() + +unittests/test_pseudodc.py:13: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ pseudodc_Tests.test_pseudodc06 ________________________ +self = + + def setUp(self): +> super(pseudodc_Tests, self).setUp() + +unittests/test_pseudodc.py:13: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ pseudodc_Tests.test_pseudodc09 ________________________ +self = + + def setUp(self): +> super(pseudodc_Tests, self).setUp() + +unittests/test_pseudodc.py:13: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ SendingPyEvents.test_PyCommandEventDerivedClone ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ SendingPyEvents.test_PyEventDerivedClone ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ SendingPyEvents.test_PyEventDerivedPostEvent _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ SendingPyEvents.test_PyEventDerivedProcessEvent ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ radiobox_Tests.test_radioboxCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ radiobox_Tests.test_radioboxDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ radiobox_Tests.test_radioboxTweaks ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ radiobut_Tests.test_radiobutDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ rawbmp_Tests.test_rawbmp1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ rearrangectrl_Tests.test_rearrangectrl1 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ rearrangectrl_Tests.test_rearrangectrl3 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ rearrangectrl_Tests.test_rearrangectrl5 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ rearrangectrl_Tests.test_rearrangectrl6 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ region_Tests.test_regionIterator1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ region_Tests.test_regionIterator2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ region_Tests.test_regionOtherRandomStuff ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ renderer_Tests.test_renderer1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ renderer_Tests.test_renderer2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_art_Tests.test_ribbon_art1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_art_Tests.test_ribbon_art3 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_art_Tests.test_ribbon_art4 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_art_Tests.test_ribbon_art5 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_art_Tests.test_ribbon_art6 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_art_Tests.test_ribbon_art7 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_bar_Tests.test_ribbon_bar1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_bar_Tests.test_ribbon_bar2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_bar_Tests.test_ribbon_bar3 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_bar_Tests.test_ribbon_bar4 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ ribbon_bar_Tests.test_ribbon_bar5 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ ribbon_buttonbar_Tests.test_ribbon_buttonbar1 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ ribbon_buttonbar_Tests.test_ribbon_buttonbar2 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ ribbon_buttonbar_Tests.test_ribbon_buttonbar4 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ ribbon_control_Tests.test_ribbon_control2 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ ribbon_gallery_Tests.test_ribbon_gallery2 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ ribbon_gallery_Tests.test_ribbon_gallery3 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ ribbon_gallery_Tests.test_ribbon_gallery4 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ ribbon_gallery_Tests.test_ribbon_gallery5 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ ribbon_gallery_Tests.test_ribbon_gallery6 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ ribbon_gallery_Tests.test_ribbon_gallery7 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ ribbon_page_Tests.test_ribbon_page1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ ribbon_page_Tests.test_ribbon_page2 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ ribbon_panel_Tests.test_ribbon_panel3 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ ribbon_panel_Tests.test_ribbon_panel4 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ ribbon_toolbar_Tests.test_ribbon_toolbar1 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ ribbon_toolbar_Tests.test_ribbon_toolbar2 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ ribbon_toolbar_Tests.test_ribbon_toolbar4 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ richmsgdlg_Tests.test_richmsgdlg1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ richtextbuffer_Tests.test_GetIM ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer01 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer02 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer03 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer05 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer06 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer07 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer10 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer11 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer13 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ richtextbuffer_Tests.test_richtextbuffer14a __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ richtextbuffer_Tests.test_richtextbuffer14c __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ richtextbuffer_Tests.test_richtextbuffer14d __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer15 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer16 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer17 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer20 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer21 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer22 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer23 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer24 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer25 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer26 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer27 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer28 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer29 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer30 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer31 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer32 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer33 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer36 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer38 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextbuffer_Tests.test_richtextbuffer39 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ richtextctrl_Tests.test_richtextctrl1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ richtextctrl_Tests.test_richtextctrl3 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ richtextctrl_Tests.test_richtextctrl4 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ richtextctrl_Tests.test_richtextctrl8 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ richtextformatdlg_Tests.test_richtextformatdlg1 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ richtextformatdlg_Tests.test_richtextformatdlg2 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ richtexthtml_Tests.test_richtexthtml1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ richtextprint_Tests.test_richtextprint1 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ richtextprint_Tests.test_richtextprint2 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ richtextprint_Tests.test_richtextprint3 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ richtextprint_Tests.test_richtextprint4 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ richtextstyledlg_Tests.test_richtextstyledlg1 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ richtextstyledlg_Tests.test_richtextstyledlg2 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ richtextstyledlg_Tests.test_richtextstyledlg3 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextstyles_Tests.test_richtextstyles01 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextstyles_Tests.test_richtextstyles03 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextstyles_Tests.test_richtextstyles04 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextstyles_Tests.test_richtextstyles05 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextstyles_Tests.test_richtextstyles06 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextstyles_Tests.test_richtextstyles08 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextstyles_Tests.test_richtextstyles09 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextstyles_Tests.test_richtextstyles10 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ richtextstyles_Tests.test_richtextstyles6 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________ richtextsymboldlg_Tests.test_richtextsymboldlg2 ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ richtextxml_Tests.test_richtextxml1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ sashwin_Tests.test_sashwin1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ scrolbar_Tests.test_scrolbarCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ scrolbar_Tests.test_scrolbarEvents ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ scrolwin_Tests.test_SetFocusIgnoringChildren _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ scrolwin_Tests.test_scrolcvsCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ scrolwin_Tests.test_scrolcvsDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ scrolwin_Tests.test_scrolwinCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ scrolwin_Tests.test_scrolwinOnDraw ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ settings_Tests.test_settingsConstants _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ settings_Tests.test_settingsGetFont ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ settings_Tests.test_settingsGetMetric _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ simplebook_Tests.test_simplebook01 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ simplebook_Tests.test_simplebook02 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ simplebook_Tests.test_simplebook03 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ sizer_Tests.test_iter _____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ sizer_Tests.test_sizerAddMany _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ sizer_Tests.test_sizerBool __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ sizer_Tests.test_sizerBox ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ sizer_Tests.test_sizerFlexGrid ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ sizer_Tests.test_sizerGrid __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ sizer_Tests.test_sizerOrientation _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ sizer_Tests.test_sizerSpacers1 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ sizer_Tests.test_sizerSpacers2 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ sizer_Tests.test_sizerSpacers3 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ sizer_Tests.test_sizerSpacers4 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ sizer_Tests.test_sizerSpacers5 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ sizer_Tests.test_sizerUserData ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ slider_Tests.test_sliderCtor _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ slider_Tests.test_sliderFlags _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ slider_Tests.test_sliderProperties ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ slider_Tests.test_sliderRange _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ slider_Tests.test_sliderRange2 ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ snglinst_Tests.test_snglinstCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ snglinst_Tests.test_snglinstDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ sound_Tests.test_sound1 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ sound_Tests.test_sound2 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ sound_Tests.test_sound4 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ spinbutt_Tests.test_spinbuttCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ spinbutt_Tests.test_spinbuttDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ spinbutt_Tests.test_spinbuttOther _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ spinbutt_Tests.test_spinctrlPropertiesInAction ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ spinctrl_Tests.test_spinctrlCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ spinctrl_Tests.test_spinctrlDoubleCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ spinctrl_Tests.test_spinctrlOther _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ splash_Tests.test_splash1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ splash_Tests.test_splash2 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ splitter_Tests.test_splitterDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ splitter_Tests.test_splitterEventTypes ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ splitter_Tests.test_splitterFlags _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ splitter_Tests.test_splitterSplits ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ srchctrl_Tests.test_srchctrlCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ srchctrl_Tests.test_srchctrlDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ srchctrl_Tests.test_srchctrlEventBinding ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ srchctrl_Tests.test_srchctrlGetSetValue ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ srchctrl_Tests.test_srchctrlHasTextCtrlMethods ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ srchctrl_Tests.test_srchctrlProperties ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ statbmp_Tests.test_statbmpCtor ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ statbox_Tests.test_statboxCtor ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ statbox_Tests.test_statboxGetBordersForSizer _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ statline_Tests.test_statlineCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ statline_Tests.test_statlineDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ stattext_Tests.test_stattextCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ stattext_Tests.test_stattextDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ stattext_Tests.test_stattextFlags _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ statusbar_Tests.test_statusbarCtor ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ statusbar_Tests.test_statusbarFrameUse1 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ statusbar_Tests.test_statusbarFrameUse2 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ statusbar_Tests.test_statusbarFrameUse3 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ statusbar_Tests.test_statusbarGetFielRect ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ statusbar_Tests.test_statusbarStatusBarPane __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ statusbar_Tests.test_statusbarWidths1 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ statusbar_Tests.test_statusbarWidths2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ statusbar_Tests.test_statusbarWidths3 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________________ stc_Tests.test_stcCtor ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ stc_Tests.test_stcDefaultCtor _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ stc_Tests.test_stcStyleTextCtrl1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ stc_Tests.test_stcStyleTextCtrl5 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ stc_Tests.test_stcStyleTextCtrl6 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ stc_Tests.test_stcStyleTextCtrl8 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ stdpaths_Tests.test_stdpaths _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ stockgdi_Tests.test_stockgdi2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ stockgdi_Tests.test_stockgdi3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ stream_Tests.test_inputStreamParam ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ stream_Tests.test_outputStreamParam ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ sysopt_Tests.test_sysopt1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ taskbar_Tests.test_taskbar2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ textctrl_Tests.test_textctrlCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ textctrl_Tests.test_textctrlFlags _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ textctrl_Tests.test_textctrlNativeCaret ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ textctrl_Tests.test_textctrlProperties ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ textctrl_Tests.test_textctrlTextAttr _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________ textctrl_Tests.test_textctrlTextAttrProperties ________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ textdlg_Tests.test_textdlg1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ textdlg_Tests.test_textdlg2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ tglbtn_Tests.test_ButtonDefaultCtor ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ tglbtn_Tests.test_ButtonDefaultEvt ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ timectrl_Tests.test_timectrl1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ timer_Tests.test_timerCallLater2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ timer_Tests.test_timerDerivedClass ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ timer_Tests.test_timerOwner1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ timer_Tests.test_timerPyTimer _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ tipdlg_Tests.test_tipdlg2 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ tipwin_Tests.test_tipwinCtor _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ toolbar_Tests.test_toolbarClientData2 _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ toolbar_Tests.test_toolbarStyles _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ toolbar_Tests.test_toolbarTools1 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ toolbar_Tests.test_toolbarTools2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ toolbook_Tests.test_toolbook3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ tooltip_Tests.test_tooltip __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ tooltip_Tests.test_tooltipStatics _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ translation_Tests.test_translation1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ treebook_Tests.test_treebook1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ treebook_Tests.test_treebook3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ treectrl_Tests.test_treeEventsExist ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ treectrl_Tests.test_treectrlConstantsExist __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ treectrl_Tests.test_treectrlCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ treectrl_Tests.test_treectrlDefaultCtor ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ treectrl_Tests.test_treectrlGetSelections ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ treectrl_Tests.test_treectrlTreeItemId01 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ treectrl_Tests.test_treectrlTreeItemId02 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ treectrl_Tests.test_treectrlTreeItemId03 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ treectrl_Tests.test_treectrlTreeItemPyData __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ treelist_Tests.test_treelist1 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ treelist_Tests.test_treelist2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ treelist_Tests.test_treelist3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ treelist_Tests.test_treelist4 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ treelist_Tests.test_treelistitem_hashable ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ utils_Tests.test_utilsBusyCursor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ utils_Tests.test_utilsBusyCursor2 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ utils_Tests.test_utilsBusyCursor3 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ utils_Tests.test_utilsSomeOtherStuff _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ utils_Tests.test_utilsVersionInfo _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ utils_Tests.test_utilsWindowDisabler _____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ validate_Tests.test_validateDefault ______________________ +self = + + def setUp(self): +> super(validate_Tests, self).setUp() + +unittests/test_validate.py:33: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ validate_Tests.test_validateTransfer _____________________ +self = + + def setUp(self): +> super(validate_Tests, self).setUp() + +unittests/test_validate.py:33: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ variant_Tests.test_variant2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ variant_Tests.test_variant3 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ variant_Tests.test_variantArrayString1 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ variant_Tests.test_variantArrayString2 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ variant_Tests.test_variantDateTime1 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ variant_Tests.test_variantDateTime2 ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ variant_Tests.test_variantNone ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ vidmode_Tests.test_vidmode __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ virtualOverride_Tests.test_virtualOverride __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ vlbox_Tests.test_vlbox1 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________________ vlbox_Tests.test_vlbox4 ____________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ vscroll_Tests.test_vscroll_HScrolledWindow1 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ vscroll_Tests.test_vscroll_HVScrolledWindow1 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ vscroll_Tests.test_vscroll_HVScrolledWindow2 _________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ vscroll_Tests.test_vscroll_VScrolledWindow1 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ vscroll_Tests.test_vscroll_VScrolledWindow2 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ webview_Tests.test_webview1 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ webview_Tests.test_webview2 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________________ webview_Tests.test_webview6 __________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ WindowTests.test_DLG_UNIT ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ WindowTests.test_SimpleWindowCtor _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ WindowTests.test_windowCoordConvFunctions ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ WindowTests.test_windowHandle _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ IdManagerTest.test_WindowIDRef01 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ IdManagerTest.test_WindowIDRef02 _______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ IdManagerTest.test_newIdRef01 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ IdManagerTest.test_newIdRef02 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ IdManagerTest.test_newIdRef03 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ IdManagerTest.test_newIdRef04 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ WindowList.test_WindowList_GetChildren ____________________ +self = + + def setUp(self): +> super(WindowList, self).setUp() + +unittests/test_windowlist.py:11: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________________ WindowList.test_WindowList_GetTLW1 ______________________ +self = + + def setUp(self): +> super(WindowList, self).setUp() + +unittests/test_windowlist.py:11: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ WindowList.test_WindowList_repr ________________________ +self = + + def setUp(self): +> super(WindowList, self).setUp() + +unittests/test_windowlist.py:11: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ wizard_Tests.test_wizard1 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ wizard_Tests.test_wizard2 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ wizard_Tests.test_wizard3 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________________ wizard_Tests.test_wizard4 ___________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ wrapsizer_Tests.test_wrapsize _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ datetime_Tests.test_datetime2 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ datetime_Tests.test_datetime3 _________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +______________ datetime_Tests.test_datetimeConvertFromPyDatetime _______________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ datetime_Tests.test_datetimeConvertHelpers __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ datetime_Tests.test_datetimeFormatParse ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________ datetime_Tests.test_datetimeGetAmPm ______________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ datetime_Tests.test_datetimeParseDate1 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ datetime_Tests.test_datetimeParseDate3 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ datetime_Tests.test_datetimeParseDateTime1 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ datetime_Tests.test_datetimeParseDateTime2 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +__________________ datetime_Tests.test_datetimeParseDateTime3 __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ datetime_Tests.test_datetimeParseFormat1 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +___________________ datetime_Tests.test_datetimeParseFormat2 ___________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_________________ datetime_Tests.test_datetimeParseRfc822Date __________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ datetime_Tests.test_datetimeParseTime1 ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +____________________ datetime_Tests.test_datetimeProperties ____________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_______________________ datetime_Tests.test_datetimeSet ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +________________________ datetime_Tests.test_datetimeTm ________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ xml_Tests.test_xml1 ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ xml_Tests.test_xml2 ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ xrc_Tests.test_xrc1 ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ xrc_Tests.test_xrc3 ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ xrc_Tests.test_xrc5 ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ xrc_Tests.test_xrc6 ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +_____________________________ xrc_Tests.test_xrc7 ______________________________ +unittests/wtc.py:16: in setUp + self.app = wx.App() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , redirect = False, filename = None +useBestVisual = False, clearSigInt = True + + def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): + """ + Construct a ``wx.App`` object. + + :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be + redirected? Defaults to False. If ``filename`` is None + then output will be redirected to a window that pops up + as needed. (You can control what kind of window is created + for the output by resetting the class variable + ``outputWindowClass`` to a class of your choosing.) + + :param filename: The name of a file to redirect output to, if + redirect is True. + + :param useBestVisual: Should the app try to use the best + available visual provided by the system (only relevant on + systems that have more than one visual.) This parameter + must be used instead of calling `SetUseBestVisual` later + on because it must be set before the underlying GUI + toolkit is initialized. + + :param clearSigInt: Should SIGINT be cleared? This allows the + app to terminate upon a Ctrl-C in the console like other + GUI apps will. + + :note: You should override OnInit to do application + initialization to ensure that the system, toolkit and + wxWidgets are fully initialized. + """ + PyApp.__init__(self) + + # make sure we can create a GUI + if not self.IsDisplayAvailable(): + + if wx.Port == "__WXMAC__": + msg = "This program needs access to the screen. Please run with a\n" \ + "Framework build of python, and only when you are logged in\n" \ + "on the main display of your Mac." + + elif wx.Port == "__WXGTK__": + msg ="Unable to access the X Display, is $DISPLAY set properly?" + + else: + msg = "Unable to create GUI" + # TODO: more description is needed for wxMSW... + + raise SystemExit(msg) + + # This has to be done before OnInit + self.SetUseBestVisual(useBestVisual) + + # Set the default handler for SIGINT. This fixes a problem + # where if Ctrl-C is pressed in the console that started this + # app then it will not appear to do anything, (not even send + # KeyboardInterrupt???) but will later segfault on exit. By + # setting the default handler then the app will exit, as + # expected (depending on platform.) + if clearSigInt: + try: + import signal + signal.signal(signal.SIGINT, signal.SIG_DFL) + except: + pass + + # Save and redirect the stdio to a window? + self.stdioWin = None + self.saveStdio = (_sys.stdout, _sys.stderr) + if redirect: + self.RedirectStdio(filename) + + # Use Python's install prefix as the default + prefix = _sys.prefix + if isinstance(prefix, (bytes, bytearray)): + prefix = prefix.decode(_sys.getfilesystemencoding()) + wx.StandardPaths.Get().SetInstallPrefix(prefix) + + # Until the new native control for wxMac is up to par, still use the generic one. + wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1) + + # This finishes the initialization of wxWindows and then calls + # the OnInit that should be present in the derived class +> self._BootstrapApp() +E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?) + +build/lib.linux-arm64-3.7/wx/core.py:2137: SystemError +----------------------------- Captured stderr call ----------------------------- +Unable to init server: Could not connect: Connection refused +=============================== warnings summary =============================== +build/lib.linux-arm64-3.7/wx/lib/agw/aui/framemanager.py:3934 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/agw/aui/framemanager.py:3934: DeprecationWarning: invalid escape sequence \` + """ + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:909 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:909: DeprecationWarning: invalid escape sequence \d + hours = '(0\d| \d|1[012])' + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:946 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:946: DeprecationWarning: invalid escape sequence \( + 'validRegex': "^\(\d{3}\) \d{3}-\d{4}", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:952 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:952: DeprecationWarning: invalid escape sequence \d + 'validRegex': "^\d{3}-\d{3}-\d{4}", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:958 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:958: DeprecationWarning: invalid escape sequence \( + 'validRegex': "^\(\d{3}\) \d{3}-\d{4}", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:964 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:964: DeprecationWarning: invalid escape sequence \d + 'validRegex': "^\d{3}-\d{3}-\d{4}", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:988 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:988: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '/' + days + '/' + '\d{4} ' + hours + ':' + minutes + ':' + seconds + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:995 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:995: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '-' + days + '-' + '\d{4} ' + hours + ':' + minutes + ':' + seconds + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1001 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1001: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '/' + days + '/' + '\d{4} ' + milhours + ':' + minutes + ':' + seconds, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1007 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1007: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '-' + days + '-' + '\d{4} ' + milhours + ':' + minutes + ':' + seconds, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1014 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1014: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '/' + days + '/' + '\d{4} ' + hours + ':' + minutes + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1020 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1020: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '/' + days + '/' + '\d{4} ' + milhours + ':' + minutes, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1027 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1027: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '-' + days + '-' + '\d{4} ' + hours + ':' + minutes + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1033 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1033: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '-' + days + '-' + '\d{4} ' + milhours + ':' + minutes, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1039 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1039: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '/' + days + '/' + '\d{4}', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1045 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1045: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '/' + days + '/\d\d', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1051 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1051: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + months + '-' + days + '-' +'\d{4}', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1058 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1058: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + '\d{4}'+ '/' + months + '/' + days, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1064 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1064: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + '\d{4}'+ '.' + months + '.' + days, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1070 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1070: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '/' + months + '/' + '\d{4}', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1076 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1076: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '.' + months + '.' + '\d{4}', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1082 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1082: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '.' + charmonths + '.' + '\d{4}', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1088 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1088: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '/' + charmonths + '/' + '\d{4}', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1096 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1096: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + '\d{4}'+ '/' + months + '/' + days + ' ' + hours + ':' + minutes + ':' + seconds + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1103 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1103: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + '\d{4}'+ '.' + months + '.' + days + ' ' + hours + ':' + minutes + ':' + seconds + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1110 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1110: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '/' + months + '/' + '\d{4} ' + hours + ':' + minutes + ':' + seconds + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1117 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1117: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '.' + months + '.' + '\d{4} ' + hours + ':' + minutes + ':' + seconds + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1125 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1125: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + '\d{4}'+ '/' + months + '/' + days + ' ' + hours + ':' + minutes + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1132 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1132: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + '\d{4}'+ '.' + months + '.' + days + ' ' + hours + ':' + minutes + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1139 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1139: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '/' + months + '/' + '\d{4} ' + hours + ':' + minutes + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1146 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1146: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '.' + months + '.' + '\d{4} ' + hours + ':' + minutes + ' (A|P)M', + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1153 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1153: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + '\d{4}'+ '/' + months + '/' + days + ' ' + milhours + ':' + minutes + ':' + seconds, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1159 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1159: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + '\d{4}'+ '.' + months + '.' + days + ' ' + milhours + ':' + minutes + ':' + seconds, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1165 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1165: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '/' + months + '/' + '\d{4} ' + milhours + ':' + minutes + ':' + seconds, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1171 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1171: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '.' + months + '.' + '\d{4} ' + milhours + ':' + minutes + ':' + seconds, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1176 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1176: DeprecationWarning: invalid escape sequence \d + 'formatcodes': 'DF','validRegex': '^' + '\d{4}'+ '/' + months + '/' + days + ' ' + milhours + ':' + minutes, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1182 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1182: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + '\d{4}'+ '.' + months + '.' + days + ' ' + milhours + ':' + minutes, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1188 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1188: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '/' + months + '/' + '\d{4} ' + milhours + ':' + minutes, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1194 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1194: DeprecationWarning: invalid escape sequence \d + 'validRegex': '^' + days + '.' + months + '.' + '\d{4} ' + milhours + ':' + minutes, + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1227 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1227: DeprecationWarning: invalid escape sequence \d + 'validRegex': "\d{3}-\d{2}-\d{4}", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1233 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1233: DeprecationWarning: invalid escape sequence \d + 'validRegex': "\d{4}-\d{4}-\d{4}-\d{4}", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1239 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1239: DeprecationWarning: invalid escape sequence \d + 'validRegex': "^" + months + "/\d\d", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1245 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1245: DeprecationWarning: invalid escape sequence \d + 'validRegex': "^\d{5}", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1251 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1251: DeprecationWarning: invalid escape sequence \d + 'validRegex': "\d{5}-(\s{4}|\d{4})", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1257 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1257: DeprecationWarning: invalid escape sequence \d + 'validRegex': "^0.\d\d", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1270 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1270: DeprecationWarning: invalid escape sequence \w + 'validRegex': "^\w+([\-\.]\w+)*@((([a-zA-Z0-9]+(\-[a-zA-Z0-9]+)*\.)+)[a-zA-Z]{2,4}|\[(\d|\d\d|(1\d\d|2[0-4]\d|25[0-5]))(\.(\d|\d\d|(1\d\d|2[0-4]\d|25[0-5]))){3}\]) *$", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1276 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:1276: DeprecationWarning: invalid escape sequence \d + 'validRegex': "( \d| \d\d|(1\d\d|2[0-4]\d|25[0-5]))(\.( \d| \d\d|(1\d\d|2[0-4]\d|25[0-5]))){3}", + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:2260 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:2260: DeprecationWarning: invalid escape sequence \{ + rex = re.compile('([' + "".join(maskchars) + '])\{(\d+)\}') + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6458 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6458: DeprecationWarning: invalid escape sequence \. + filter = re.compile("[ ]?[#]+\.[#]+\n") + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6581 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6581: DeprecationWarning: invalid escape sequence \( + ("Phone No", "(###) ###-#### x:###", "", 'F!^-R', "^\(\d\d\d\) \d\d\d-\d\d\d\d", (),[],''), + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6584 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6584: DeprecationWarning: invalid escape sequence \d + ("Social Sec#", "###-##-####", "", 'F', "\d{3}-\d{2}-\d{4}", (),[],''), + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6585 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6585: DeprecationWarning: invalid escape sequence \d + ("U.S. Zip+4", "#{5}-#{4}", "", 'F', "\d{5}-(\s{4}|\d{4})",(),[],''), + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6587 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6587: DeprecationWarning: invalid escape sequence \C + ("Customer No", "\CAA-###", "", 'F!', "C[A-Z]{2}-\d{3}", (),[],''), + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6587: DeprecationWarning: invalid escape sequence \d + ("Customer No", "\CAA-###", "", 'F!', "C[A-Z]{2}-\d{3}", (),[],''), + +build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6594 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/maskededit.py:6594: DeprecationWarning: invalid escape sequence \d + ("fraction selector","#/##", "", 'F', "^\d\/\d\d?", (), + +build/lib.linux-arm64-3.7/wx/lib/masked/numctrl.py:399 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/numctrl.py:399: DeprecationWarning: invalid escape sequence \* + """ + +build/lib.linux-arm64-3.7/wx/lib/masked/timectrl.py:585 + /build/wxpython4.0-4.0.4+dfsg/build/lib.linux-arm64-3.7/wx/lib/masked/timectrl.py:585: DeprecationWarning: invalid escape sequence \d + hourfield = Field(formatcodes='0r