Skip to content

Instantly share code, notes, and snippets.

View sandgate-dev's full-sized avatar
☀️

toolshed sandgate-dev

☀️
View GitHub Profile
@sandgate-dev
sandgate-dev / .pylintrc
Created January 5, 2018 13:46
pylintrc google style
[MASTER]
# Specify a configuration file.
#rcfile=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Add files or directories to the blacklist. They should be base names, not
@sandgate-dev
sandgate-dev / qt_basic.py
Last active January 5, 2018 14:02
basic maya qt example using a ui file (qt designer)
""" Intro Maya QT """
from PyQt4 import QtCore, QtGui, uic
import maya.cmds as cmds
UI_FILE = "qt_basic.ui"
UiMainWindow, QtBaseClass = uic.loadUiType(UI_FILE)
class CreateUI(QtGui.QMainWindow, UiMainWindow):
"""
@sandgate-dev
sandgate-dev / qt_basic.ui
Created January 5, 2018 14:05
basic qt ui file
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>367</width>
<height>71</height>
@sandgate-dev
sandgate-dev / qt_basic.py
Created January 8, 2018 09:21
Basic python qt in one file
"""Basic QT window exercise"""
import maya.cmds as cmds
import maya.OpenMayaUI as omUi
from PyQt4 import QtCore, QtGui
import sip
def get_maya_window():
"""
Get the maya main window as a QMainWindow instance
@sandgate-dev
sandgate-dev / qt_basic.py
Created January 8, 2018 09:21
Basic python qt in one file
"""Basic QT window exercise"""
import maya.cmds as cmds
import maya.OpenMayaUI as omUi
from PyQt4 import QtCore, QtGui
import sip
def get_maya_window():
"""
Get the maya main window as a QMainWindow instance
@sandgate-dev
sandgate-dev / shelfBase.py
Created January 8, 2018 09:59 — forked from vshotarov/shelfBase.py
Maya base class for building custom shelves.
import maya.cmds as mc
def _null(*args):
pass
class _shelf():
'''A simple class to build shelves in maya. Since the build method is empty,
it should be extended by the derived class to build the necessary shelf elements.
@sandgate-dev
sandgate-dev / 010_applyassertobjectsequal-js.markdown
Created August 11, 2018 11:43
010_applyAssertObjectsEqual.js
@sandgate-dev
sandgate-dev / 009_applyassertarraysequal-js.markdown
Created August 11, 2018 11:43
009_applyAssertArraysEqual.js
@sandgate-dev
sandgate-dev / 008_applyassertequal_b-js.markdown
Created August 11, 2018 11:43
008_applyAssertEqual_B.js