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 |
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
# Maintainer: Dennis E. Mungai <[email protected]> | |
pkgname=nvidia-prime | |
pkgver=0.7 | |
pkgrel=1 | |
pkgdesc="Tools to enable NVIDIA's Prime." | |
url="https://launchpad.net/ubuntu/+source/nvidia-prime" | |
arch=('x86_64' 'i686') | |
license=('GPLv3') | |
depends=('lightdm' 'bbswitch' 'python' 'bash') | |
optdepends=('nvidia' 'lightdm-gtk3-greeter') |
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/python3 | |
# This is downloading class which uses python 3 with PyQt4. It shows how to use the | |
# QT progress bar in python. The downloading takes place in the UrlDownloader class | |
# which inherits from QThread. | |
# | |
# To test the widget: | |
# 1. try copying a URL that points to a large file. | |
# 2. Paste the file url into the combobox's text area, but do nothing more. | |
# 3. Copy another URL pointing to a large file. |