This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import functools | |
| import logging as log | |
| def typecheck(f): | |
| """Decorator for Python3 annotations to type-check inputs and outputs.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import sys, os | |
| import logging as log | |
| from getpass import getuser | |
| from platform import platform, python_version | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import sys, os | |
| import logging as log | |
| from copy import copy | |
| from tempfile import gettempdir | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import sys, os | |
| import logging as log | |
| from datetime import datetime | |
| try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import sys, os | |
| import logging as log | |
| try: | |
| from shutil import disk_usage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # | |
| # | |
| # To generate DEB package from Python Package: | |
| # sudo pip3 install stdeb | |
| # python3 setup.py --verbose --command-packages=stdeb.command bdist_deb | |
| # | |
| # | |
| # To generate RPM package from Python Package: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """Custom TabBar and TabWidget. | |
| Tabs like ChromeOS for Python3 Qt5 with Extras like UnDock / ReDock Tabs, | |
| Pin / UnPin Tabs, On Mouse Hover Previews for all Tabs except current Tab, | |
| Colored Tabs, Change Position, Change Shape, Fading Transition effect, | |
| Close all Tabs to the Right, Close all Tabs to the Left, Close all other Tabs, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """Custom QLCDNumber that shows date and time, optional background image.""" | |
| import os | |
| from datetime import datetime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """Custom QMainWindow Widget.""" | |
| import os | |
| import sys | |
| from random import randint |