All Samples(94879) | Call(89744) | Derive(5127) | Import(8)
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
d = {}
for k, v in iterable:
d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
src/c/m/CmdUtils-0.1/cmdutils/log.py CmdUtils(Download)
ansi_codes = dict(
reset=0,
bold=1,
italic=3,
src/p/y/PySpotCam-1.0.0/PySpotCam/SpotCamFunction.py PySpotCam(Download)
# Flags for use with SpotGetCameraAttributes() AttributesDictionnary = dict( color = (0x00000001 ," camera can return color images"), slider = (0x00000002 ," camera has a color filter slider"), live_mode = (0x00000004 ," camera can run live mode"),
src/p/y/pygr-HEAD/pygr/sequtil.py pygr(Download)
class AATranslation(object):
'customizable translation class'
geneticCode = dict(TTY='F', TTR='L', TCN='S', TAY='Y', TGY='C', TGG='W',
CTN='L', CCN='P', CAY='H', CAR='Q', CGN='R',
ATY='I', ATA='I', ATG='M', ACN='T', AAY='N', AAR='K',
src/m/a/matplotlib-HEAD/examples/pylab_examples/fancyarrow_demo.py matplotlib(Download)
ha="right", va="center",
size=fontsize,
arrowprops=dict(arrowstyle=stylename,
patchB=p,
shrinkA=5,
shrinkB=5,
fc="w", ec="k",
connectionstyle="arc3,rad=-0.05",
),
bbox=dict(boxstyle="square", fc="w"))
src/p/y/pygr-0.8.2/pygr/sequtil.py pygr(Download)
class AATranslation(object):
'customizable translation class'
geneticCode = dict(TTY='F', TTR='L', TCN='S', TAY='Y', TGY='C', TGG='W',
CTN='L', CCN='P', CAY='H', CAR='Q', CGN='R',
ATY='I', ATA='I', ATG='M', ACN='T', AAY='N', AAR='K',
src/w/e/web2py-HEAD/gluon/contrib/paymentech.py web2py(Download)
# default charge data
data = dict(user=self.user, password=self.password,
industry=self.industry, message=self.message,
bin_code=self.bin_code, merchant=self.merchant,
amount="")
result = dict()
# Complete the charge request with the method kwargs
src/m/a/Matplotlib--JJ-s-dev-HEAD/examples/pylab_examples/fancyarrow_demo.py Matplotlib--JJ-s-dev(Download)
ha="right", va="center",
size=fontsize,
arrowprops=dict(arrowstyle=stylename,
patchB=p,
shrinkA=5,
shrinkB=5,
fc="w", ec="k",
connectionstyle="arc3,rad=-0.05",
),
bbox=dict(boxstyle="square", fc="w"))
src/m/a/matplotlib-HEAD/doc/users/plotting/examples/connectionstyle_demo.py matplotlib(Download)
def add_at(ax, t, loc=2):
fp = dict(size=8)
_at = AnchoredText(t, loc=loc, prop=fp)
ax.add_artist(_at)
return _at
xy=(x1, y1), xycoords='data',
xytext=(x2, y2), textcoords='data',
arrowprops=dict(arrowstyle="->", #linestyle="dashed",
color="0.5",
shrinkA=5, shrinkB=5,
src/p/y/pyformex-0.8.6/pyformex/examples/Hesperia.py pyformex(Download)
if res['Solver'] == 'Calpy':
fe_model = Dict(dict(solver='Calpy',nodes=nodes,elems=elems,prop=PDB,loads=NODLoad,botnodes=botnodes,nsteps=nlc))
else:
fe_model = Dict(dict(solver='Abaqus',nodes=nodes,elems=elems,prop=PDB,botnodes=botnodes,nsteps=nlc))
botnodeset = Nset(bc.nr)
fe_model = Dict(dict(nodes=nodes,elems=elems,prop=PDB,botnodeset=botnodeset,nsteps=step))
export({'fe_model':fe_model})
smooth()
src/m/a/Matplotlib--JJ-s-dev-HEAD/doc/users/plotting/examples/connectionstyle_demo.py Matplotlib--JJ-s-dev(Download)
def add_at(ax, t, loc=2):
fp = dict(size=8)
_at = AnchoredText(t, loc=loc, prop=fp)
ax.add_artist(_at)
return _at
xy=(x1, y1), xycoords='data',
xytext=(x2, y2), textcoords='data',
arrowprops=dict(arrowstyle="->", #linestyle="dashed",
color="0.5",
shrinkA=5, shrinkB=5,
Previous 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 Next