rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
command = self.parseRequest(publisher, request, response, form, **kwargs) if command: try: method = getattr(publisher, 'do_'+command) except AttributeError: logger.warn('Invalid command %r', action) method = publisher.cmd_invalidCommand else: logger.debug('Dispatching for command %r', command) else: logger.debug('Assum...
def __call__(self, publisher, request, response, form, **kwargs): """Is called by publisher, dispatches request to method""" raise NotImplementedError
d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc/qCommands.py
def __call__(self, publisher, request, response, form, **kwargs):
def parseRequest(self, publisher, request, response, form, **kwargs):
def __call__(self, publisher, request, response, form, **kwargs): for field_name in form.keys(): if field_name.startswith(self.field_name_prefix): action = field_name[len(self.field_name_prefix):] try: method = getattr(publisher, 'do_'+action) except AttributeError: logger.warn('Invalid command %r', action) return publ...
d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc/qCommands.py
action = field_name[len(self.field_name_prefix):] try: method = getattr(publisher, 'do_'+action) except AttributeError: logger.warn('Invalid command %r', action) return publisher.cmd_invalidCommand( request, response, form, **kwargs) else: logger.debug('Dispatching for command %r', action) return method(request, respon...
return field_name[len(self.field_name_prefix):]
def __call__(self, publisher, request, response, form, **kwargs): for field_name in form.keys(): if field_name.startswith(self.field_name_prefix): action = field_name[len(self.field_name_prefix):] try: method = getattr(publisher, 'do_'+action) except AttributeError: logger.warn('Invalid command %r', action) return publ...
d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc/qCommands.py
def __call__(self, publisher, request, response, form, **kwargs): action = form.getfirst(self.field_name) if action: try: method = getattr(publisher, 'do_'+action) except AttributeError: logger.warn('Invalid command %r', action) return publisher.cmd_invalidCommand(request, response, form, **kwargs) else: logger.debug('...
def parseRequest(self, publisher, request, response, form, **kwargs): return form.getfirst(self.field_name)
def __call__(self, publisher, request, response, form, **kwargs): action = form.getfirst(self.field_name) if action: try: method = getattr(publisher, 'do_'+action) except AttributeError: logger.warn('Invalid command %r', action) return publisher.cmd_invalidCommand(request, response, form, **kwargs) else: logger.debug('...
d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc/qCommands.py
def __call__(self, publisher, request, response, form, **kwargs): action = request.pathInfo[1:] if action: try: method = getattr(publisher, 'do_'+action) except AttributeError: method = publisher.cmd_invalidCommand else: method = publisher.cmd_defaultCommand return method(request, response, form, **kwargs)
def parseRequest(self, publisher, request, response, form, **kwargs): return request.pathInfo[1:]
def __call__(self, publisher, request, response, form, **kwargs): action = request.pathInfo[1:] if action: try: method = getattr(publisher, 'do_'+action) except AttributeError: method = publisher.cmd_invalidCommand else: method = publisher.cmd_defaultCommand return method(request, response, form, **kwargs)
d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc/qCommands.py
def __init__(self, site, **kwargs): self.dispatcher = FieldNameCommandDispatcher( field_name_prefix='qps-action:') Publisher.__init__(self, site, **kwargs)
dispatcher = FieldNameCommandDispatcher(field_name_prefix='qps-action:')
def __init__(self, site, **kwargs): self.dispatcher = FieldNameCommandDispatcher( field_name_prefix='qps-action:') Publisher.__init__(self, site, **kwargs)
d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/d17b2bc5127b846ff1f31a70c5d6e6a6bd3250dc/qCommands.py
logger.info('New transaction')
logger.debug('Transaction started')
def __init__(self, conn): self.dbConn = conn if not conn._current_transaction: self.impl = conn._current_transaction = TransactionImpl(conn) logger.info('New transaction') else: self.impl = conn._current_transaction logger.info('Existing transaction level %s', self.impl.level) conn._current_transaction.pushLevel() self...
272758b885fb85573bc5678d4671457334ef903d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/272758b885fb85573bc5678d4671457334ef903d/qSQL.py
logger.info('Existing transaction level %s', self.impl.level)
logger.debug('Transaction reused (level=%s)', self.impl.level)
def __init__(self, conn): self.dbConn = conn if not conn._current_transaction: self.impl = conn._current_transaction = TransactionImpl(conn) logger.info('New transaction') else: self.impl = conn._current_transaction logger.info('Existing transaction level %s', self.impl.level) conn._current_transaction.pushLevel() self...
272758b885fb85573bc5678d4671457334ef903d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/272758b885fb85573bc5678d4671457334ef903d/qSQL.py
logger.info('Transaction level %d -> %d', self.level, self.level+1)
logger.debug('Transaction level %d -> %d', self.level, self.level+1)
def pushLevel(self): logger.info('Transaction level %d -> %d', self.level, self.level+1) if not self.level: self.dbConn.begin() self.level += 1
272758b885fb85573bc5678d4671457334ef903d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/272758b885fb85573bc5678d4671457334ef903d/qSQL.py
logger.info('Transaction level %d -> %d', self.level,
logger.debug('Transaction level %d -> %d', self.level,
def popLevel(self): if self.level>0: logger.info('Transaction level %d -> %d', self.level, self.level-1) self.level -= 1 if not (self.level or self.is_aborted): self.dbConn.commit()
272758b885fb85573bc5678d4671457334ef903d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/272758b885fb85573bc5678d4671457334ef903d/qSQL.py
logger.info('Transaction aborted')
logger.debug('Transaction aborted')
def abort(self): if not self.is_aborted: logger.info('Transaction aborted') self.level = 0 self.dbConn.rollback() self.is_aborted = 1
272758b885fb85573bc5678d4671457334ef903d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/272758b885fb85573bc5678d4671457334ef903d/qSQL.py
allowedIndexFields = self.getAllowedIndexFields(obj)
allowedIndexFields = self.allowedIndexFields(obj)
def isStreamUpdatable(self, obj): allowedIndexFields = self.getAllowedIndexFields(obj) # assume obj.type=='stream': stream = obj if self.user.checkPermission('w', stream.permissions): item_fields = stream.allStreamFields for field_name in allowedIndexFields: field_type = item_fields[field_name] if self.user.checkPermis...
a6d49571eb3d1b524b97bb25449b5e98b590b3f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/a6d49571eb3d1b524b97bb25449b5e98b590b3f7/qEdit.py
cr.add(uid, user, domain, password, force=force)
cr.add(uid, user, realm, password, force=force)
def add(self, uri, aliases, password, idtype=ID_ORIG, force=False): do = Domain(self.dburi, self.db) ur = Uri(self.dburi, self.db) cr = Cred(self.dburi, self.db) us = User(self.dburi, self.db)
8cb74a5e2bba749563093943e5945be2f2714247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2855/8cb74a5e2bba749563093943e5945be2f2714247/ctlctl.py
return adjust_ser_uri(sul[0])
return [adjust_ser_uri(sul[0])]
def handle_servers(opts): if not opts['SERVERS']: return [opts['SER_URI']] sul = opts['SERVERS'].split(' ') if len(sul) < 2: return adjust_ser_uri(sul[0]) uris = [] for uri in sul: uris.append(adjust_ser_uri(uri)) return uris
43be32b686a4b9f90e7f1e97b19aea870f3fa653 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2855/43be32b686a4b9f90e7f1e97b19aea870f3fa653/main.py
print curi
def usrloc(command, uri, contact=None, *args, **opts): ad, al = arg_attrs(args) table = opts['UL_TABLE'] q = float(ad.get('q', 1)) expires = ad.get('expires') if expires is not None: expires = int(expires) flags = ad.get('flags') if flags is not None: flags = int(flags) # LB hack ur = Uri(opts['DB_URI']) uid = ur.get_...
be954e03cc45efc614b6f9bb7b8cd7ab56435f4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2855/be954e03cc45efc614b6f9bb7b8cd7ab56435f4a/ctlctl.py
del defaults[o]
if defaults.has_key(o): del defaults[o]
def parse_cmdline(argv): lineopts, args = gnu_getopt(argv, opt.GETOPT_SHORT, opt.GETOPT_LONG) opts = {} defaults = {} for o, desc in opt.OPT.items(): if len(desc) < 4: continue defaults[o] = desc[3] for o, v in lineopts: o = opt.OPTS[o] if opt.OPT[o][2] is False: v = True opts[o] = v del defaults[o] return args, opts, ...
6172696777f49122b746328d84ebf512a74d243f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2855/6172696777f49122b746328d84ebf512a74d243f/main.py
password = get_password(opts)
prompt='Please, enter new user password.\nPassword: ' password = get_password(opts, prompt=prompt)
def user(command, uri, *aliases, **opts): force = opts['FORCE'] cmd = CMD.get(command) if cmd == CMD_ADD: password = get_password(opts) u = User_ctl(opts['DB_URI'], multi_rpc(opts)) u.add(uri, aliases, password, ID_ORIG, force) elif cmd == CMD_RM: u = User_ctl(opts['DB_URI'], multi_rpc(opts)) u.rm(uri, ID_ORIG, force) ...
b10ab4a9d70f6c8ed96d350dbc8142336c7e926e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2855/b10ab4a9d70f6c8ed96d350dbc8142336c7e926e/ctlctl.py
password = get_password(opts)
prompt='Please, enter new user password.\nPassword: ' password = get_password(opts, prompt=prompt)
def password(uri, password=None, **opts): force = opts['FORCE'] password = get_password(opts) u = User_ctl(opts['DB_URI'], multi_rpc(opts)) u.passwd(uri, password, force)
b10ab4a9d70f6c8ed96d350dbc8142336c7e926e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2855/b10ab4a9d70f6c8ed96d350dbc8142336c7e926e/ctlctl.py
us.rm(uid)
try: us.rm(uid, force=force) except: pass
def rm(self, uri, idtype=ID_ORIG, force=False): us = User(self.dburi, self.db) ur = Uri(self.dburi, self.db) cr = Cred(self.dburi, self.db) try: uid = ur.get_uid(uri) except: if force: return raise ur.rm_uid_uri(uid, uri, force=force) try: cr.rm_uid(uid, force=force) except: pass us.rm(uid) us.purge() ur.purge() cr.pur...
b10ab4a9d70f6c8ed96d350dbc8142336c7e926e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2855/b10ab4a9d70f6c8ed96d350dbc8142336c7e926e/ctlctl.py
raise Error (EDUPL, err)
raise Error (EDUPL, errstr(did=did, domain=domain))
def add(self, did, domain, flags=None, force=False): dflags = self.default_flags() fmask = parse_flags(flags) flags = new_flags(dflags, fmask) canonical = is_canonical(flags)
5706715aec106ba5f8f5ca1491c1e005f3fb1970 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2855/5706715aec106ba5f8f5ca1491c1e005f3fb1970/ctldomain.py
if opts['SER_URI'][:-1] != '/':
if opts['SER_URI'][-1:] != '/':
def usrloc(command, uri, contact=None, *args, **opts): ad, al = arg_attrs(args) table = opts['UL_TABLE'] q = float(ad.get('q', 1)) expires = ad.get('expires') if expires is not None: expires = int(expires) flags = ad.get('flags') if flags is not None: flags = int(flags) # LB hack ur = Uri(opts['DB_URI']) uid = ur.get_...
fbd1672592dbf507b291290faea1a8f15de7b6a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2855/fbd1672592dbf507b291290faea1a8f15de7b6a0/ctlctl.py
self.plist[u'CFBundleIconFile'] = os.path.basename(iconfile)
plist[u'CFBundleIconFile'] = os.path.basename(iconfile)
def initialize_plist(self): plist = self.get_default_plist() for target in self.targets: plist.update(getattr(target, 'plist', {})) plist.update(self.plist) plist.update(self.get_plist_options())
cb20a68a0d8e4a4b3611e68feb47e07c2ae6a163 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2074/cb20a68a0d8e4a4b3611e68feb47e07c2ae6a163/build_app.py
self.plist[u'LSPrefersPPC'] = True
plist[u'LSPrefersPPC'] = True
def initialize_plist(self): plist = self.get_default_plist() for target in self.targets: plist.update(getattr(target, 'plist', {})) plist.update(self.plist) plist.update(self.get_plist_options())
cb20a68a0d8e4a4b3611e68feb47e07c2ae6a163 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2074/cb20a68a0d8e4a4b3611e68feb47e07c2ae6a163/build_app.py
self.__OnSpin(WXK_UP)
self.__OnSpin(wx.WXK_UP)
def __OnSpinUp(self, event): """ Event handler for any bound spin button on EVT_SPIN_UP; causes control to behave as if up arrow was pressed. """ dbg('TimeCtrl::OnSpinUp', indent=1) self.__OnSpin(WXK_UP) keep_processing = False dbg(indent=0) return keep_processing
2461468b51c022278cc52ba7fd274f3bfedef7e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2461468b51c022278cc52ba7fd274f3bfedef7e8/timectrl.py
self.__OnSpin(WXK_DOWN)
self.__OnSpin(wx.WXK_DOWN)
def __OnSpinDown(self, event): """ Event handler for any bound spin button on EVT_SPIN_DOWN; causes control to behave as if down arrow was pressed. """ dbg('TimeCtrl::OnSpinDown', indent=1) self.__OnSpin(WXK_DOWN) keep_processing = False dbg(indent=0) return keep_processing
2461468b51c022278cc52ba7fd274f3bfedef7e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2461468b51c022278cc52ba7fd274f3bfedef7e8/timectrl.py
self.SetSizeHints(minW=250, minH=200)
self.SetSizeHints(250, 200)
def __init__(self, parent, id, title, fileName=None): """ Standard constructor.
d44766079411fb97b9a3a4029ef3db4df55c471e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/d44766079411fb97b9a3a4029ef3db4df55c471e/pySketch.py
:param version: Specifies the version to look for, it can either be a sting or a list of strings. Each string is compared to the installed wxPythons and the best match is added to the sys.path, allowing an 'import wx' to find that version.
:param version: Specifies the version to look for, it can either be a string or a list of strings. Each string is compared to the installed wxPythons and the best match is inserted into the sys.path, allowing an 'import wx' to find that version.
def require(versions): """ Search for a wxPython installation that matches version. :param version: Specifies the version to look for, it can either be a sting or a list of strings. Each string is compared to the installed wxPythons and the best match is added to the sys.path, allowing an 'import wx' to find that ver...
93ba536aa63ebbf5a9949eec00e816ad9b9a4040 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/93ba536aa63ebbf5a9949eec00e816ad9b9a4040/wxversion.py
return not evt.HasModifiers() and evt.GetKeyCode() != WXK_SHIFT
return (not (evt.ControlDown() or evt.AltDown()) and evt.GetKeyCode() != WXK_SHIFT)
def IsAcceptedKey(self, evt): """ Return TRUE to allow the given key to start editing: the base class version only checks that the event has no modifiers. F2 is special and will always start the editor. """ self.log.write("MyCellEditor: IsAcceptedKey: %d\n" % (evt.GetKeyCode()))
d3f175108be4a2c7db64e31b7d36189e036b5597 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/d3f175108be4a2c7db64e31b7d36189e036b5597/GridCustEditor.py
pass
wx.EvtHandler.__init__(self)
def __init__(self): """Initializes the DocService.""" pass
55114d934fbeb4a330af416a0a19b13bdafec45b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/55114d934fbeb4a330af416a0a19b13bdafec45b/pydocview.py
saveData['_defChild'] = str(self._defChild)
saveData['_defChild_class'] = self._defChild.__name__ saveData['_defChild_mod'] = self._defChild.__module__
def GetSaveData(self): saveData = {} saveData['_defChild'] = str(self._defChild) saveData['child'] = self.child.GetSaveData() return saveData
2268569346a39bcff9b7ba734f85652a7bf4c2d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2268569346a39bcff9b7ba734f85652a7bf4c2d9/multisash.py
dChild = data['_defChild'] mod = dChild.split('.')[0]
mod = data['_defChild_mod'] dChild = mod + '.' + data['_defChild_class']
def SetSaveData(self,data): dChild = data['_defChild'] mod = dChild.split('.')[0] exec 'import %s' % mod self._defChild = eval(dChild) old = self.child self.child = MultiSplit(self,self,wxPoint(0,0),self.GetSize()) self.child.SetSaveData(data['child']) old.Destroy() self.OnMultiSize(None) self.child.OnSize(None)
2268569346a39bcff9b7ba734f85652a7bf4c2d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2268569346a39bcff9b7ba734f85652a7bf4c2d9/multisash.py
self.child = MultiSplit(self,self,wxPoint(0,0),self.GetSize())
self.child = MultiSplit(self,self,wx.Point(0,0),self.GetSize())
def SetSaveData(self,data): dChild = data['_defChild'] mod = dChild.split('.')[0] exec 'import %s' % mod self._defChild = eval(dChild) old = self.child self.child = MultiSplit(self,self,wxPoint(0,0),self.GetSize()) self.child.SetSaveData(data['child']) old.Destroy() self.OnMultiSize(None) self.child.OnSize(None)
2268569346a39bcff9b7ba734f85652a7bf4c2d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2268569346a39bcff9b7ba734f85652a7bf4c2d9/multisash.py
saveData['detailClass'] = str(self.detail.child.__class__)
saveData['detailClass_class'] = self.detail.child.__class__.__name__ saveData['detailClass_mod'] = self.detail.child.__module__
def GetSaveData(self): saveData = {} saveData['detailClass'] = str(self.detail.child.__class__) if hasattr(self.detail.child,'GetSaveData'): attr = getattr(self.detail.child,'GetSaveData') if callable(attr): dData = attr() if dData: saveData['detail'] = dData v1,v2 = self.GetPosition() saveData['x'] = v1 saveData['y'] ...
2268569346a39bcff9b7ba734f85652a7bf4c2d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2268569346a39bcff9b7ba734f85652a7bf4c2d9/multisash.py
dChild = data['detailClass'] mod = dChild.split('.')[0]
mod = data['detailClass_mod'] dChild = mod + '.' + data['detailClass_class']
def SetSaveData(self,data): dChild = data['detailClass'] mod = dChild.split('.')[0] exec 'import %s' % mod detClass = eval(dChild) self.SetDimensions(data['x'],data['y'],data['w'],data['h']) old = self.detail self.detail = MultiClient(self,detClass) dData = data.get('detail',None) if dData: if hasattr(self.detail.child...
2268569346a39bcff9b7ba734f85652a7bf4c2d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2268569346a39bcff9b7ba734f85652a7bf4c2d9/multisash.py
MAIN_LIBS = ['mono', 'base', 'core', 'html', 'xml', 'net']
MAIN_LIBS = ['mono', 'base', 'core', 'adv', 'html', 'xml', 'net']
def mk_wxid(id): """Creates wxWindows library identifier from bakefile target ID that follows this convention: DLLs end with 'dll', static libraries end with 'lib'. If withPrefix=1, then _wxid is returned instead of wxid.""" if id.endswith('dll') or id.endswith('lib'): wxid = id[:-3] else: wxid = id return wxid
13cb46e0b6fe6d404c6e28bec1744a5fc30356b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/13cb46e0b6fe6d404c6e28bec1744a5fc30356b9/wxwin.py
LIBS_GUI = ['core', 'html', 'gl']
LIBS_GUI = ['core', 'adv', 'html', 'gl']
def mk_wxid(id): """Creates wxWindows library identifier from bakefile target ID that follows this convention: DLLs end with 'dll', static libraries end with 'lib'. If withPrefix=1, then _wxid is returned instead of wxid.""" if id.endswith('dll') or id.endswith('lib'): wxid = id[:-3] else: wxid = id return wxid
13cb46e0b6fe6d404c6e28bec1744a5fc30356b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/13cb46e0b6fe6d404c6e28bec1744a5fc30356b9/wxwin.py
mask = wxMaskColour(bmp, wxBLUE) bmp.SetMask(mask)
if wxPlatform == '__WXMSW__': mask = wxMaskColour(bmp, wxBLUE) bmp.SetMask(mask)
def __init__(self, parent, log): wxPanel.__init__(self, parent, -1) self.log = log
5bff6bb8eace63d3841c1eb6d36230647c854f76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/5bff6bb8eace63d3841c1eb6d36230647c854f76/GenericButtons.py
mask = wxMaskColour(bmp, wxBLUE) bmp.SetMask(mask)
if wxPlatform == '__WXMSW__': mask = wxMaskColour(bmp, wxBLUE) bmp.SetMask(mask)
def __init__(self, parent, log): wxPanel.__init__(self, parent, -1) self.log = log
5bff6bb8eace63d3841c1eb6d36230647c854f76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/5bff6bb8eace63d3841c1eb6d36230647c854f76/GenericButtons.py
mask = wxMaskColour(bmp, wxBLUE) bmp.SetMask(mask)
if wxPlatform == '__WXMSW__': mask = wxMaskColour(bmp, wxBLUE) bmp.SetMask(mask)
def __init__(self, parent, log): wxPanel.__init__(self, parent, -1) self.log = log
5bff6bb8eace63d3841c1eb6d36230647c854f76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/5bff6bb8eace63d3841c1eb6d36230647c854f76/GenericButtons.py
mask = wxMaskColour(bmp, wxBLUE) bmp.SetMask(mask)
if wxPlatform == '__WXMSW__': mask = wxMaskColour(bmp, wxBLUE) bmp.SetMask(mask)
def __init__(self, parent, log): wxPanel.__init__(self, parent, -1) self.log = log
5bff6bb8eace63d3841c1eb6d36230647c854f76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/5bff6bb8eace63d3841c1eb6d36230647c854f76/GenericButtons.py
for x in range(1, 15):
for x in range(1, 16):
def __init__(self, parent, id, log): wx.Listbook.__init__(self, parent, id, style= wx.LB_DEFAULT #wxLB_TOP #wxLB_BOTTOM #wxLB_LEFT #wxLB_RIGHT ) self.log = log
58947438138318eefada1a6974d718a8ea9d7dd8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/58947438138318eefada1a6974d718a8ea9d7dd8/Listbook.py
editor.SetBackgroundColour(wx.Colour(red=255,green=255,blue=175))
editor.SetBackgroundColour(self.editorBgColour) editor.SetForegroundColour(self.editorFgColour)
def make_editor(self, col_style=wx.LIST_FORMAT_LEFT): editor = wx.PreTextCtrl() style =wx.TE_PROCESS_ENTER|wx.TE_PROCESS_TAB|wx.TE_RICH2 style |= {wx.LIST_FORMAT_LEFT: wx.TE_LEFT, wx.LIST_FORMAT_RIGHT: wx.TE_RIGHT, wx.LIST_FORMAT_CENTRE : wx.TE_CENTRE }[col_style] editor.Create(self, -1, style=style) editor.SetBackgr...
42a04f70db5f3e16ee6e679ddf8fadbc275ee51b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/42a04f70db5f3e16ee6e679ddf8fadbc275ee51b/listctrl.py
if self.IsVirtual(): self.SetVirtualData(self.curRow, self.curCol, text) else: self.SetStringItem(self.curRow, self.curCol, text)
self.SetFocus() evt = wx.ListEvent(wx.wxEVT_COMMAND_LIST_END_LABEL_EDIT, self.GetId()) evt.m_itemIndex = self.curRow evt.m_col = self.curCol item = self.GetItem(self.curRow, self.curCol) evt.m_item.SetId(item.GetId()) evt.m_item.SetColumn(item.GetColumn()) evt.m_item.SetData(item.GetData()) evt.m_item.SetText(text)...
def CloseEditor(self, evt=None): ''' Close the editor and save the new value to the ListCtrl. ''' text = self.editor.GetValue() self.editor.Hide() if self.IsVirtual(): # replace by whather you use to populate the virtual ListCtrl # data source self.SetVirtualData(self.curRow, self.curCol, text) else: self.SetStringItem...
42a04f70db5f3e16ee6e679ddf8fadbc275ee51b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/42a04f70db5f3e16ee6e679ddf8fadbc275ee51b/listctrl.py
opts = args = None
def OnInit(self): global debug # Process comand-line try: opts = args = None opts, args = getopt.getopt(sys.argv[1:], 'dhiv') for o,a in opts: if o == '-h': usage() sys.exit(0) elif o == '-d': debug = True elif o == '-v': print 'XRCed version', version sys.exit(0) except getopt.GetoptError: if wxPlatform != '__WXMAC__...
364a2be07a5acbeabb1f3d1be3d51999feb2b42c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/364a2be07a5acbeabb1f3d1be3d51999feb2b42c/xrced.py
\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00qID\ ATx\x9c\xed\xd6;\n\x800\x10E\xd1{\xc5\x8d\xb9r\x97\x16\x0b\xad$\x8a\x82:\x16\ o\xda\x84pB2\x1f\x81Fa\x8c\x9c\x08\x04Z{\xcf\xa72\xbcv\xfa\xc5\x08 \x80r\x80\ \xfc\xa2\x0e\x1c\xe4\xba\xfaX\x1d\xd0\xde]S\x07\x02\xd8>\xe1wa-`\x9fQ\xe9\ \x86\x01\x0...
\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00oID\ ATx\x9c\xed\x961\x0e\x800\x0c\x03\xcf\x88\x8f\xf1r\x9eV\x86n\xd0\xa2V*x\xb1W\ G\xcdIQ\x9c\x82Y\x02(/f)=wAs\x89\xed\xb3\xd7\x07\x15\x80\x00\xd8\x01\xec\xaa\ 9\xd0\xd9uI\xcbr@\x12\xcf\xc4I\x0e\x04\x00\xf6\x7f\xdb\xc9\x0bp\xdf\xa8\\\ \xc3\x00\x0...
def getMondrianData(): return \
0362149469d2a6b6c35bb97d018c21aa3a5e4c9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/0362149469d2a6b6c35bb97d018c21aa3a5e4c9a/images.py
win.Connect(-1, -1, wxEVT_UPDATE_THROBBER, func) class UpdateThrobberEvent(wxPyEvent):
win.Connect(-1, -1, THROBBER_EVENT, func) class UpdateThrobberEvent(wx.PyEvent):
def EVT_UPDATE_THROBBER(win, func): win.Connect(-1, -1, wxEVT_UPDATE_THROBBER, func)
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
wxPyEvent.__init__(self) self.SetEventType(wxEVT_UPDATE_THROBBER)
wx.PyEvent.__init__(self) self.SetEventType(THROBBER_EVENT)
def __init__(self): wxPyEvent.__init__(self) self.SetEventType(wxEVT_UPDATE_THROBBER)
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
class Throbber(wxPanel):
class Throbber(wx.Panel):
def __init__(self): wxPyEvent.__init__(self) self.SetEventType(wxEVT_UPDATE_THROBBER)
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
pos = wxDefaultPosition, size = wxDefaultSize,
pos = wx.DefaultPosition, size = wx.DefaultSize,
def __init__(self, parent, id, bitmap, # single (composite) bitmap or list of bitmaps pos = wxDefaultPosition, size = wxDefaultSize, frameDelay = 0.1,# time between frames frames = 0, # number of frames (only necessary for composite image) frameWidth = 0, # width of each frame (only necessary for composi...
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
wxPanel.__init__(self, parent, id, pos, size, style, name)
wx.Panel.__init__(self, parent, id, pos, size, style, name)
def __init__(self, parent, id, bitmap, # single (composite) bitmap or list of bitmaps pos = wxDefaultPosition, size = wxDefaultSize, frameDelay = 0.1,# time between frames frames = 0, # number of frames (only necessary for composite image) frameWidth = 0, # width of each frame (only necessary for composi...
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
EVT_PAINT(self, self.OnPaint)
timerID = wx.NewId() self.timer = wx.Timer(self, timerID)
def __init__(self, parent, id, bitmap, # single (composite) bitmap or list of bitmaps pos = wxDefaultPosition, size = wxDefaultSize, frameDelay = 0.1,# time between frames frames = 0, # number of frames (only necessary for composite image) frameWidth = 0, # width of each frame (only necessary for composi...
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
EVT_WINDOW_DESTROY(self, self.OnDestroyWindow) self.event = threading.Event() self.event.set()
wx.EVT_PAINT(self, self.OnPaint) wx.EVT_TIMER(self, timerID, self.OnTimer) wx.EVT_WINDOW_DESTROY(self, self.OnDestroyWindow) def OnTimer(self, event): wx.PostEvent(self, UpdateThrobberEvent())
def __init__(self, parent, id, bitmap, # single (composite) bitmap or list of bitmaps pos = wxDefaultPosition, size = wxDefaultSize, frameDelay = 0.1,# time between frames frames = 0, # number of frames (only necessary for composite image) frameWidth = 0, # width of each frame (only necessary for composi...
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
def OnDestroyWindow(self, event): # this is currently broken due to a bug in wxWindows... hopefully # it'll be fixed soon. Meanwhile be sure to explicitly call Stop() # before the throbber is destroyed. self.Stop() event.Skip()
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
dc.SetTextForeground(wxWHITE)
dc.SetTextForeground(wx.WHITE)
def Draw(self, dc): dc.DrawBitmap(self.submaps[self.sequence[self.current]], 0, 0, True) if self.overlay and self.showOverlay: dc.DrawBitmap(self.overlay, self.overlayX, self.overlayY, True) if self.label and self.showLabel: dc.DrawText(self.label, self.labelX, self.labelY) dc.SetTextForeground(wxWHITE) dc.DrawText(sel...
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
self.Draw(wxPaintDC(self))
self.Draw(wx.PaintDC(self))
def OnPaint(self, event): self.Draw(wxPaintDC(self)) event.Skip()
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
def UpdateThread(self): try: while hasattr(self, 'event') and not self.event.isSet(): wxPostEvent(self, UpdateThrobberEvent()) self.event.wait(self.frameDelay) except wxPyDeadObjectError: return
def UpdateThread(self): try: while hasattr(self, 'event') and not self.event.isSet(): wxPostEvent(self, UpdateThrobberEvent()) self.event.wait(self.frameDelay) except wxPyDeadObjectError: # BUG: we were destroyed return
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
if self.event.isSet(): return
def Rotate(self, event): if self.event.isSet(): return self.current += self.direction if self.current >= len(self.sequence): if self.autoReverse: self.Reverse() self.current = len(self.sequence) - 1 else: self.current = 1 if self.current < 1: if self.autoReverse: self.Reverse() self.current = 1 else: self.current = len...
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
self.Draw(wxClientDC(self))
self.Draw(wx.ClientDC(self))
def Rotate(self, event): if self.event.isSet(): return self.current += self.direction if self.current >= len(self.sequence): if self.autoReverse: self.Reverse() self.current = len(self.sequence) - 1 else: self.current = 1 if self.current < 1: if self.autoReverse: self.Reverse() self.current = 1 else: self.current = len...
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
wxPanel.SetFont(self, font)
wx.Panel.SetFont(self, font)
def SetFont(self, font): """Set the font for the label""" wxPanel.SetFont(self, font) self.SetLabel(self.label) self.Draw(wxClientDC(self))
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
self.Draw(wxClientDC(self))
self.Draw(wx.ClientDC(self))
def SetFont(self, font): """Set the font for the label""" wxPanel.SetFont(self, font) self.SetLabel(self.label) self.Draw(wxClientDC(self))
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
self.Draw(wxClientDC(self))
self.Draw(wx.ClientDC(self))
def Rest(self): """Stop the animation and return to frame 0""" self.Stop() self.current = 0 self.Draw(wxClientDC(self))
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
return not self.event.isSet()
return self.running
def Running(self): """Returns True if the animation is running""" return not self.event.isSet()
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
if not self.Running(): self.event.clear() thread = threading.Thread(target = self.UpdateThread, name = "%s-thread" % self.name) thread.start()
if not self.running: self.running = not self.running self.timer.Start(self.frameDelay * 1000)
def Start(self): """Start the animation""" if not self.Running(): self.event.clear() thread = threading.Thread(target = self.UpdateThread, name = "%s-thread" % self.name) thread.start()
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
if self.event.isSet(): return self.event.set()
if self.running: self.timer.Stop() self.running = not self.running
def Stop(self): """Stop the animation""" if self.event.isSet(): return self.event.set()
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
self.Draw(wxClientDC(self))
self.Draw(wx.ClientDC(self))
def ToggleOverlay(self, state = None): """Toggle the overlay image""" if state is None: self.showOverlay = not self.showOverlay else: self.showOverlay = state self.Draw(wxClientDC(self))
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
self.Draw(wxClientDC(self))
self.Draw(wx.ClientDC(self))
def ToggleLabel(self, state = None): """Toggle the label""" if state is None: self.showLabel = not self.showLabel else: self.showLabel = state self.Draw(wxClientDC(self))
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
self.Draw(wxClientDC(self))
self.Draw(wx.ClientDC(self))
def SetLabel(self, label): """Change the text of the label""" self.label = label if label: extentX, extentY = self.GetTextExtent(label) self.labelX = (self.width - extentX)/2 self.labelY = (self.height - extentY)/2 self.Draw(wxClientDC(self))
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
glRotatef(self.lasty - self.y, 1.0, 0.0, 0.0); glRotatef(self.lastx - self.x, 0.0, 1.0, 0.0);
glRotatef((self.lasty - self.y)/100., 1.0, 0.0, 0.0); glRotatef((self.lastx - self.x)/100., 0.0, 1.0, 0.0);
def OnDraw(self): # clear color and depth buffers glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
d58a80fae0ea22e2012b17953b6d9deb37f4660b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/d58a80fae0ea22e2012b17953b6d9deb37f4660b/wxGLCanvas.py
glMatrixMode(GL_MODELVIEW);
def OnDraw(self): # clear color and depth buffers glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); # position viewer glMatrixMode(GL_MODELVIEW); # use a fresh transformation matrix glPushMatrix() # position object glTranslate(0.0, 0.0, -2.0); glRotate(30.0, 1.0, 0.0, 0.0); glRotate(30.0, 0.0, 1.0, 0.0);
d58a80fae0ea22e2012b17953b6d9deb37f4660b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/d58a80fae0ea22e2012b17953b6d9deb37f4660b/wxGLCanvas.py
glutSolidCone(1, 2, 50, 10)
glutSolidCone(0.5, 1, 30, 5)
def OnDraw(self): # clear color and depth buffers glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); # position viewer glMatrixMode(GL_MODELVIEW); # use a fresh transformation matrix glPushMatrix() # position object glTranslate(0.0, 0.0, -2.0); glRotate(30.0, 1.0, 0.0, 0.0); glRotate(30.0, 0.0, 1.0, 0.0);
d58a80fae0ea22e2012b17953b6d9deb37f4660b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/d58a80fae0ea22e2012b17953b6d9deb37f4660b/wxGLCanvas.py
dc = wxClientDC(self)
dc = wx.ClientDC(self)
def OnEraseBackground(self, evt): dc = evt.GetDC()
ce6b371d148acc73fa3516f4f75a9c7a362f3144 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ce6b371d148acc73fa3516f4f75a9c7a362f3144/DragImage.py
dc = wx.ClientDC(self)
def OnLeftUp(self, evt): if not self.dragImage or not self.dragShape: self.dragImage = None self.dragShape = None return
ce6b371d148acc73fa3516f4f75a9c7a362f3144 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ce6b371d148acc73fa3516f4f75a9c7a362f3144/DragImage.py
self.hiliteShape.Draw(dc)
self.RefreshRect(self.hiliteShape.GetRect())
def OnLeftUp(self, evt): if not self.dragImage or not self.dragShape: self.dragImage = None self.dragShape = None return
ce6b371d148acc73fa3516f4f75a9c7a362f3144 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ce6b371d148acc73fa3516f4f75a9c7a362f3144/DragImage.py
self.dragShape.Draw(dc)
self.RefreshRect(self.dragShape.GetRect())
def OnLeftUp(self, evt): if not self.dragImage or not self.dragShape: self.dragImage = None self.dragShape = None return
ce6b371d148acc73fa3516f4f75a9c7a362f3144 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ce6b371d148acc73fa3516f4f75a9c7a362f3144/DragImage.py
return '$(WXNAMEPREFIXGUI)$(WXNAMESUFFIX)$(WXCOMPILER)$(WXVERSIONTAG)'
return '$(WXDLLNAMEPREFIXGUI)$(WXNAMESUFFIX)$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)'
def mkDllName(wxid): """Returns string that can be used as DLL name, including name suffixes, prefixes, version tags etc. This must be kept in sync with variables defined in common.bkl!""" if wxid == 'mono': return '$(WXNAMEPREFIXGUI)$(WXNAMESUFFIX)$(WXCOMPILER)$(WXVERSIONTAG)' if wxid in LIBS_BASE: return '$(WXNAMEPRE...
4fc5f509324d85f0d48586cdd9f326709cfc1bec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4fc5f509324d85f0d48586cdd9f326709cfc1bec/wxwin.py
return '$(WXNAMEPREFIX)$(WXNAMESUFFIX)_%s$(WXCOMPILER)$(WXVERSIONTAG)' % wxid return '$(WXNAMEPREFIXGUI)$(WXNAMESUFFIX)_%s$(WXCOMPILER)$(WXVERSIONTAG)' % wxid
return '$(WXDLLNAMEPREFIX)$(WXNAMESUFFIX)_%s$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)' % wxid return '$(WXDLLNAMEPREFIXGUI)$(WXNAMESUFFIX)_%s$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)' % wxid
def mkDllName(wxid): """Returns string that can be used as DLL name, including name suffixes, prefixes, version tags etc. This must be kept in sync with variables defined in common.bkl!""" if wxid == 'mono': return '$(WXNAMEPREFIXGUI)$(WXNAMESUFFIX)$(WXCOMPILER)$(WXVERSIONTAG)' if wxid in LIBS_BASE: return '$(WXNAMEPRE...
4fc5f509324d85f0d48586cdd9f326709cfc1bec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4fc5f509324d85f0d48586cdd9f326709cfc1bec/wxwin.py
dc.SetPen(wxPen(wxBLACK, 3, wxSOLID))
dc.SetPen(wx.Pen(wx.BLACK, 3, wx.SOLID))
def Draw(self, dc, size): dc.SetFont(self.GetFont()) dc.SetTextForeground(wx.BLUE) dc.SetBackground(wx.Brush(self.GetBackgroundColour())) dc.Clear() dc.SetPen(wxPen(wxBLACK, 3, wxSOLID)) dc.DrawLine((self.linePos, 0), (self.linePos, size.height-10))
2f4df0ecb9a2b34c9602b06f62bcef137b3d31df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2f4df0ecb9a2b34c9602b06f62bcef137b3d31df/Threads.py
dc.SetPen(wxPen(color)) dc.SetBrush(wxBrush(color))
dc.SetPen(wx.Pen(color)) dc.SetBrush(wx.Brush(color))
def Draw(self, dc, size): dc.SetFont(self.GetFont()) dc.SetTextForeground(wx.BLUE) dc.SetBackground(wx.Brush(self.GetBackgroundColour())) dc.Clear() dc.SetPen(wxPen(wxBLACK, 3, wxSOLID)) dc.DrawLine((self.linePos, 0), (self.linePos, size.height-10))
2f4df0ecb9a2b34c9602b06f62bcef137b3d31df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2f4df0ecb9a2b34c9602b06f62bcef137b3d31df/Threads.py
width, height = self.GetSize()
width, height = size =self.GetSize()
def OnPaint(self, evt): width, height = self.GetSize() bmp = wx.EmptyBitmap(width, height)
2f4df0ecb9a2b34c9602b06f62bcef137b3d31df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2f4df0ecb9a2b34c9602b06f62bcef137b3d31df/Threads.py
self.Draw(dc, (width, height))
self.Draw(dc, size)
def OnPaint(self, evt): width, height = self.GetSize() bmp = wx.EmptyBitmap(width, height)
2f4df0ecb9a2b34c9602b06f62bcef137b3d31df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2f4df0ecb9a2b34c9602b06f62bcef137b3d31df/Threads.py
if self.__accept_mx:
if accept_mx:
def GetWxDateTime(self, value=None): """ This function is the conversion engine for wxTimeCtrl; it takes one of the following types: time string wxDateTime wxTimeSpan mxDateTime mxDateTimeDelta and converts it to a wxDateTime that always has Jan 1, 1970 as its date portion, so that range comparisons around values can w...
1ad053872a44469c1e57cdc07e45e82ff85d2456 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1ad053872a44469c1e57cdc07e45e82ff85d2456/timectrl.py
menu = wxMenu() menu.Append(wxID_UNDO, "Undo", "")
menu = wx.Menu() menu.Append(wx.ID_UNDO, "Undo", "")
def _OnContextMenu(self, event):
ebc89b9f61e89f9da580f62e2d79179a3db38654 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ebc89b9f61e89f9da580f62e2d79179a3db38654/maskededit.py
menu.Append(wxID_CUT, "Cut", "") menu.Append(wxID_COPY, "Copy", "") menu.Append(wxID_PASTE, "Paste", "") menu.Append(wxID_CLEAR, "Delete", "")
menu.Append(wx.ID_CUT, "Cut", "") menu.Append(wx.ID_COPY, "Copy", "") menu.Append(wx.ID_PASTE, "Paste", "") menu.Append(wx.ID_CLEAR, "Delete", "")
def _OnContextMenu(self, event):
ebc89b9f61e89f9da580f62e2d79179a3db38654 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ebc89b9f61e89f9da580f62e2d79179a3db38654/maskededit.py
menu.Append(wxID_SELECTALL, "Select All", "") EVT_MENU(menu, wxID_UNDO, self._OnCtrl_Z) EVT_MENU(menu, wxID_CUT, self._OnCtrl_X) EVT_MENU(menu, wxID_COPY, self._OnCtrl_C) EVT_MENU(menu, wxID_PASTE, self._OnCtrl_V) EVT_MENU(menu, wxID_CLEAR, self._OnClear) EVT_MENU(menu, wxID_SELECTALL, self._OnCtrl_A)
menu.Append(wx.ID_SELECTALL, "Select All", "") wx.EVT_MENU(menu, wx.ID_UNDO, self._OnCtrl_Z) wx.EVT_MENU(menu, wx.ID_CUT, self._OnCtrl_X) wx.EVT_MENU(menu, wx.ID_COPY, self._OnCtrl_C) wx.EVT_MENU(menu, wx.ID_PASTE, self._OnCtrl_V) wx.EVT_MENU(menu, wx.ID_CLEAR, self._OnClear) wx.EVT_MENU(menu, wx.ID_SELECTALL, self._O...
def _OnContextMenu(self, event):
ebc89b9f61e89f9da580f62e2d79179a3db38654 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ebc89b9f61e89f9da580f62e2d79179a3db38654/maskededit.py
EVT_UPDATE_UI(self, wxID_UNDO, self._UndoUpdateUI)
wx.EVT_UPDATE_UI(self, wx.ID_UNDO, self._UndoUpdateUI)
def _OnContextMenu(self, event):
ebc89b9f61e89f9da580f62e2d79179a3db38654 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ebc89b9f61e89f9da580f62e2d79179a3db38654/maskededit.py
self._contextMenu.Enable(wxID_UNDO, False)
self._contextMenu.Enable(wx.ID_UNDO, False)
def _UndoUpdateUI(self, event): if self._prevValue is None or self._prevValue == self._curValue: self._contextMenu.Enable(wxID_UNDO, False) else: self._contextMenu.Enable(wxID_UNDO, True)
ebc89b9f61e89f9da580f62e2d79179a3db38654 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ebc89b9f61e89f9da580f62e2d79179a3db38654/maskededit.py
self._contextMenu.Enable(wxID_UNDO, True)
self._contextMenu.Enable(wx.ID_UNDO, True)
def _UndoUpdateUI(self, event): if self._prevValue is None or self._prevValue == self._curValue: self._contextMenu.Enable(wxID_UNDO, False) else: self._contextMenu.Enable(wxID_UNDO, True)
ebc89b9f61e89f9da580f62e2d79179a3db38654 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ebc89b9f61e89f9da580f62e2d79179a3db38654/maskededit.py
self.sizerHor.OnSize(evt) self.sizerVer.OnSize(evt) self.creatorHor.OnSize(evt) self.creatorVer.OnSize(evt) self.detail.OnSize(evt) self.closer.OnSize(evt)
def doresize(): try: self.sizerHor.OnSize(evt) self.sizerVer.OnSize(evt) self.creatorHor.OnSize(evt) self.creatorVer.OnSize(evt) self.detail.OnSize(evt) self.closer.OnSize(evt) except: pass wx.CallAfter(doresize)
def OnSize(self,evt): self.sizerHor.OnSize(evt) self.sizerVer.OnSize(evt) self.creatorHor.OnSize(evt) self.creatorVer.OnSize(evt) self.detail.OnSize(evt) self.closer.OnSize(evt)
f9a5ba047c2856bcecb9568573c6ae995f9eab8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/f9a5ba047c2856bcecb9568573c6ae995f9eab8b/multisash.py
b = images.getSmilesBitmap() print b.GetSize()
def __init__(self, parent, log): # Use the WANTS_CHARS style so the panel doesn't eat the Return key. wx.Panel.__init__(self, parent, -1, style=wx.WANTS_CHARS) self.Bind(wx.EVT_SIZE, self.OnSize)
f0db59f2695af8cd4b6bf8fa736ea50efa02f4be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/f0db59f2695af8cd4b6bf8fa736ea50efa02f4be/TreeCtrl.py
BUILD_GLCANVAS = 0
BUILD_GLCANVAS = 0
def libFlag(): if FINAL: return '' elif HYBRID: return 'h' else: return 'd'
2ba9346d84bc8c5db2067683149aefe776d1042f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2ba9346d84bc8c5db2067683149aefe776d1042f/setup.py
PKGDIR+'.lib.mixins'
PKGDIR+'.lib.mixins', PKGDIR+'.lib.PyCrust',
def libFlag(): if FINAL: return '' elif HYBRID: return 'h' else: return 'd'
2ba9346d84bc8c5db2067683149aefe776d1042f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2ba9346d84bc8c5db2067683149aefe776d1042f/setup.py
frame = DrawFrame(None, -1, "FloatCanvas Demo App",wxDefaultPosition,wxSize(700,700))
frame = DrawFrame(None, -1, "FloatCanvas Demo App", size=(700,700))
def OnInit(self): global colors wxPython.lib.colourdb.updateColourDB() colors = wxPython.lib.colourdb.getColourList() frame = DrawFrame(None, -1, "FloatCanvas Demo App",wxDefaultPosition,wxSize(700,700))
707fbe5d0f6e4988cc42444956cefd4136d0c1fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/707fbe5d0f6e4988cc42444956cefd4136d0c1fc/FloatCanvas.py
win = DrawFrame(None, -1, "FloatCanvas Drawing Window",wxDefaultPosition,wxSize(500,500))
win = DrawFrame(None, -1, "FloatCanvas Drawing Window", wx.DefaultPosition, (500,500))
def runTest(frame, nb, log): """ This method is used by the wxPython Demo Framework for integrating this demo with the rest. """ global colors wxPython.lib.colourdb.updateColourDB() colors = wxPython.lib.colourdb.getColourList()
707fbe5d0f6e4988cc42444956cefd4136d0c1fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/707fbe5d0f6e4988cc42444956cefd4136d0c1fc/FloatCanvas.py
wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER,
wx.Dialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wx.Point(567, 292), size=wx.Size(493, 482), style=wx.WANTS_CHARS | wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi...
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
self._init_utils() self.SetClientSize(wxSize(451, 455))
self.SetClientSize(wx.Size(485, 455))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi...
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize) self.speedsettingCh = wxChoice(choices=[],
self.Center(wx.BOTH) self.Bind(wx.EVT_SIZE, self.OnStcstyleeditdlgSize) self.speedsettingCh = wx.Choice(choices=[],
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi...
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
parent=self, pos=wxPoint(96, 28), size=wxSize(346, 21), style=0, validator=wxDefaultValidator)
parent=self, pos=wx.Point(96, 28), size=wx.Size(380, 21), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi...
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
EVT_CHOICE(self.speedsettingCh, wxID_STCSTYLEEDITDLGSPEEDSETTINGCH, self.OnSpeedsettingchChoice) self.elementLb = wxListBox(choices=[], id=wxID_STCSTYLEEDITDLGELEMENTLB, name='elementLb', parent=self, pos=wxPoint(8, 72), size=wxSize(160, 112), style=0, validator=wxDefaultValidator)
self.speedsettingCh.Bind(wx.EVT_CHOICE, self.OnSpeedsettingchChoice, id=wxID_STCSTYLEEDITDLGSPEEDSETTINGCH) self.elementLb = wx.ListBox(choices=[], id=wxID_STCSTYLEEDITDLGELEMENTLB, name='elementLb', parent=self, pos=wx.Point(8, 70), size=wx.Size(175, 128), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi...
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
EVT_LISTBOX(self.elementLb, wxID_STCSTYLEEDITDLGELEMENTLB, self.OnElementlbListbox) self.addCommonItemBtn = wxButton(id=wxID_STCSTYLEEDITDLGADDCOMMONITEMBTN, label='Add', name='addCommonItemBtn', parent=self, pos=wxPoint(8, 184), size=wxSize(80, 17), style=0)
self.elementLb.Bind(wx.EVT_LISTBOX, self.OnElementlbListbox, id=wxID_STCSTYLEEDITDLGELEMENTLB) self.addCommonItemBtn = wx.Button(id=wxID_STCSTYLEEDITDLGADDCOMMONITEMBTN, label='Add', name='addCommonItemBtn', parent=self, pos=wx.Point(8, 200), size=wx.Size(88, 17), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi...
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
EVT_BUTTON(self.addCommonItemBtn, wxID_STCSTYLEEDITDLGADDCOMMONITEMBTN, self.OnAddsharebtnButton) self.removeCommonItemBtn = wxButton(id=wxID_STCSTYLEEDITDLGREMOVECOMMONITEMBTN,
self.addCommonItemBtn.Bind(wx.EVT_BUTTON, self.OnAddsharebtnButton, id=wxID_STCSTYLEEDITDLGADDCOMMONITEMBTN) self.removeCommonItemBtn = wx.Button(id=wxID_STCSTYLEEDITDLGREMOVECOMMONITEMBTN,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi...
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py