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
s = "azcbobobegghakl" | |
check = "bob" | |
checker = 0 | |
for i in range(len(s)): | |
try: | |
if s[i] == check[0] and s[i+1] == check[1] and s[i+2] == check[2]: | |
checker +=1 | |
except: | |
pass |
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
s = "abcbcd" | |
alph = "abcdefghijklmnopqrstuvwxyz" | |
temp = 0 | |
list = "" | |
fin = [] | |
for i in range(len(s)): | |
if s[i] in alph: | |
fin.append(list) | |
list = list + s[i] |
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
from PySide import QtCore, QtGui | |
import sys | |
import os | |
import re | |
class Application (QtGui.QMainWindow): | |
def __init__(self, parent=None): | |
super(Application, self).__init__(parent) | |
self.setGeometry(50, 50, 500, 500) | |
style = """QTableView{ |
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
from PySide import QtGui, QtCore | |
import os, subprocess, shutil, re | |
class animQt(QtGui.QMainWindow): | |
def __init__(self): | |
super(animQt, self).__init__() | |
self.setGeometry(250,250,360,100) | |
style = """ | |
QMainWindow, QMessageBox{ |
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
import maya.cmds as mc | |
wName = "RenderFrames" | |
#Starting Class here | |
class renFrames(object): | |
finLst = [] | |
cam = [] | |
finCam = "" | |
def __init__(self): | |
#print "testing" |
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
# moneyKart/kartDisplay/moneyKartUI.py | |
# Line 18 update for linux | |
if sys.platform.startswith('win'): | |
#Remains same | |
else: | |
w, h = 940, 560 | |
# Line 89 function change | |
if sys.platform.startswith('win'): | |
# Remains same |
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
try: | |
from PySide2 import QtWidgets, QtCore, QtGui | |
except: | |
from Qt import QtWidgets, QtCore, QtGui | |
class QWidgetList(QtWidgets.QScrollArea): | |
def __init__(self, parent=None): | |
super(QWidgetList, self).__init__(parent) | |
#Private attributes of QWidgetList |