Skip to content

Instantly share code, notes, and snippets.

@romeroRigger
romeroRigger / pyside_dynamic.py
Created August 4, 2017 04:21 — forked from cpbotha/pyside_dynamic.py
pyside_dynamic.py with minor improvements - also see http://stackoverflow.com/a/14894550/532513
#!/usr/bin/python2
# -*- coding: utf-8 -*-
# Copyright (c) 2011 Sebastian Wiesner <[email protected]>
# Modifications by Charl Botha <[email protected]>
# * customWidgets support (registerCustomWidget() causes segfault in
# pyside 1.1.2 on Ubuntu 12.04 x86_64)
# * workingDirectory support in loadUi
# found this here:
# https://github.com/lunaryorn/snippets/blob/master/qt4/designer/pyside_dynamic.py
@romeroRigger
romeroRigger / circleCircumference.py
Created March 30, 2016 18:04
sample from markwon evernote to postach.io
# http://www.codeskulptor.org/iipp-practice-experimental/#user40_TlwYnrun7U_2.py
# Compute the circumference of a circle, given the length of its radius.
###################################################
# Tests
# Student should uncomment ONLY ONE of the following at a time.
PI = 3.14
# Test 1 - Select the following lines and use ctrl+shift+k to uncomment.
# radius = 8