Skip to content

Instantly share code, notes, and snippets.

View ozmartian's full-sized avatar

ozmartian ozmartian

View GitHub Profile
@juancarlospaco
juancarlospaco / qmainwindow.py
Last active March 1, 2022 02:38
Custom QMainWindow with cool features for Python3 Qt5.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Custom QMainWindow Widget."""
import os
import sys
from random import randint
@Brainiarc7
Brainiarc7 / prime-select PKGBUILD for Arch Linux
Last active November 11, 2018 15:16
Enable NVIDIA PRIME's selector on Arch Linux
# 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')
@abdalla-alothman
abdalla-alothman / progbarDownloader.py
Created February 28, 2014 12:35
Simple PyQt Progress Bar Downloader
#!/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.