python main.py --amount 100
- Panning by left-click + drag
- Scale by rotating the mouse wheel
from functools import wraps | |
import logging | |
logger = logging.getLogger(__name__) | |
def timed(func): | |
"""This decorator prints the execution time for the decorated function.""" | |
@wraps(func) | |
def wrapper(*args, **kwargs): | |
start = time.time() |
import sip | |
sip.setapi('QString', 2) | |
sip.setapi('QVariant', 2) | |
from PyQt4 import QtCore, QtGui | |
class TableModel(QtCore.QAbstractTableModel): | |
""" | |
A simple 5x4 table model to demonstrate the delegates |
#python | |
import lx | |
import lxu.object | |
import lxu.command | |
import lxifc | |
class AwSelListener(lxifc.SelectionListener): | |
running = False |
# python | |
""" Short snippet demonstrating how you can edit scene item's name using MODO 701 Python API. | |
""" | |
import lx | |
import lxu.select | |
PREFIX = 'prefix_' |
# python | |
""" Snippet demonstrates how to filter item selection out so it contains | |
only items of required type (group items in this case). | |
Filtered items are printed out in Event Log. | |
""" | |
import lx | |
import lxu.select |