rem
stringlengths 0
322k
| add
stringlengths 0
2.05M
| context
stringlengths 8
228k
|
---|---|---|
GROUP BY account_analytic_line.account_id""",(ids2,)) | GROUP BY account_analytic_line.account_id""",(parent_ids,)) | def _total_cost_calc(self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: acc_set = ",".join(map(str, ids2)) cr.execute("""select account_analytic_line.account_id,COALESCE(sum(amount_currency),0.0) \ |
return self._compute_currency_for_level_tree(cr, uid, ids, ids2, res, acc_set, context) | return self._compute_currency_for_level_tree(cr, uid, ids, parent_ids, res, context) | def _total_cost_calc(self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: acc_set = ",".join(map(str, ids2)) cr.execute("""select account_analytic_line.account_id,COALESCE(sum(amount_currency),0.0) \ |
ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) | parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', ids)])) | def _ca_theorical_calc(self, cr, uid, ids, name, arg, context={}): res = {} res2 = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) # Warning # This computation doesn't take care of pricelist ! # Just consider list_price if ids2: cr.execute("""select account_analytic_line.account_id as account_id, \ COALESCE(sum((account_analytic_line.unit_amount * pt.list_price) \ - (account_analytic_line.unit_amount * pt.list_price \ * hr.factor)),0.0) as somme from account_analytic_line \ left join account_analytic_journal \ on (account_analytic_line.journal_id = account_analytic_journal.id) \ join product_product pp \ on (account_analytic_line.product_id = pp.id) \ join product_template pt \ on (pp.product_tmpl_id = pt.id) \ join account_analytic_account a \ on (a.id=account_analytic_line.account_id) \ join hr_timesheet_invoice_factor hr \ on (hr.id=a.to_invoice) \ where account_analytic_line.account_id =ANY(%s) \ and a.to_invoice IS NOT NULL \ and account_analytic_journal.type in ('purchase','general') GROUP BY account_analytic_line.account_id""",(ids2,)) for account_id, sum in cr.fetchall(): res2[account_id] = round(sum,2) for obj_id in ids: res.setdefault(obj_id, 0.0) res2.setdefault(obj_id, 0.0) for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if child_id != obj_id: res[obj_id] += res.get(child_id, 0.0) res[obj_id] += res2.get(child_id, 0.0) # sum both result on account_id for id in ids: res[id] = round(res.get(id, 0.0),2) + round(res2.get(id, 0.0),2) return res |
if ids2: | if parent_ids: | def _ca_theorical_calc(self, cr, uid, ids, name, arg, context={}): res = {} res2 = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) # Warning # This computation doesn't take care of pricelist ! # Just consider list_price if ids2: cr.execute("""select account_analytic_line.account_id as account_id, \ COALESCE(sum((account_analytic_line.unit_amount * pt.list_price) \ - (account_analytic_line.unit_amount * pt.list_price \ * hr.factor)),0.0) as somme from account_analytic_line \ left join account_analytic_journal \ on (account_analytic_line.journal_id = account_analytic_journal.id) \ join product_product pp \ on (account_analytic_line.product_id = pp.id) \ join product_template pt \ on (pp.product_tmpl_id = pt.id) \ join account_analytic_account a \ on (a.id=account_analytic_line.account_id) \ join hr_timesheet_invoice_factor hr \ on (hr.id=a.to_invoice) \ where account_analytic_line.account_id =ANY(%s) \ and a.to_invoice IS NOT NULL \ and account_analytic_journal.type in ('purchase','general') GROUP BY account_analytic_line.account_id""",(ids2,)) for account_id, sum in cr.fetchall(): res2[account_id] = round(sum,2) for obj_id in ids: res.setdefault(obj_id, 0.0) res2.setdefault(obj_id, 0.0) for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if child_id != obj_id: res[obj_id] += res.get(child_id, 0.0) res[obj_id] += res2.get(child_id, 0.0) # sum both result on account_id for id in ids: res[id] = round(res.get(id, 0.0),2) + round(res2.get(id, 0.0),2) return res |
where account_analytic_line.account_id =ANY(%s) \ | where account_analytic_line.account_id IN %s \ | def _ca_theorical_calc(self, cr, uid, ids, name, arg, context={}): res = {} res2 = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) # Warning # This computation doesn't take care of pricelist ! # Just consider list_price if ids2: cr.execute("""select account_analytic_line.account_id as account_id, \ COALESCE(sum((account_analytic_line.unit_amount * pt.list_price) \ - (account_analytic_line.unit_amount * pt.list_price \ * hr.factor)),0.0) as somme from account_analytic_line \ left join account_analytic_journal \ on (account_analytic_line.journal_id = account_analytic_journal.id) \ join product_product pp \ on (account_analytic_line.product_id = pp.id) \ join product_template pt \ on (pp.product_tmpl_id = pt.id) \ join account_analytic_account a \ on (a.id=account_analytic_line.account_id) \ join hr_timesheet_invoice_factor hr \ on (hr.id=a.to_invoice) \ where account_analytic_line.account_id =ANY(%s) \ and a.to_invoice IS NOT NULL \ and account_analytic_journal.type in ('purchase','general') GROUP BY account_analytic_line.account_id""",(ids2,)) for account_id, sum in cr.fetchall(): res2[account_id] = round(sum,2) for obj_id in ids: res.setdefault(obj_id, 0.0) res2.setdefault(obj_id, 0.0) for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if child_id != obj_id: res[obj_id] += res.get(child_id, 0.0) res[obj_id] += res2.get(child_id, 0.0) # sum both result on account_id for id in ids: res[id] = round(res.get(id, 0.0),2) + round(res2.get(id, 0.0),2) return res |
GROUP BY account_analytic_line.account_id""",(ids2,)) | GROUP BY account_analytic_line.account_id""",(parent_ids,)) | def _ca_theorical_calc(self, cr, uid, ids, name, arg, context={}): res = {} res2 = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) # Warning # This computation doesn't take care of pricelist ! # Just consider list_price if ids2: cr.execute("""select account_analytic_line.account_id as account_id, \ COALESCE(sum((account_analytic_line.unit_amount * pt.list_price) \ - (account_analytic_line.unit_amount * pt.list_price \ * hr.factor)),0.0) as somme from account_analytic_line \ left join account_analytic_journal \ on (account_analytic_line.journal_id = account_analytic_journal.id) \ join product_product pp \ on (account_analytic_line.product_id = pp.id) \ join product_template pt \ on (pp.product_tmpl_id = pt.id) \ join account_analytic_account a \ on (a.id=account_analytic_line.account_id) \ join hr_timesheet_invoice_factor hr \ on (hr.id=a.to_invoice) \ where account_analytic_line.account_id =ANY(%s) \ and a.to_invoice IS NOT NULL \ and account_analytic_journal.type in ('purchase','general') GROUP BY account_analytic_line.account_id""",(ids2,)) for account_id, sum in cr.fetchall(): res2[account_id] = round(sum,2) for obj_id in ids: res.setdefault(obj_id, 0.0) res2.setdefault(obj_id, 0.0) for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if child_id != obj_id: res[obj_id] += res.get(child_id, 0.0) res[obj_id] += res2.get(child_id, 0.0) # sum both result on account_id for id in ids: res[id] = round(res.get(id, 0.0),2) + round(res2.get(id, 0.0),2) return res |
ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: | parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', ids)])) if parent_ids: | def _last_worked_date_calc (self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: cr.execute("select account_analytic_line.account_id, max(date) \ from account_analytic_line \ where account_id =ANY(%s) \ and invoice_id is null \ GROUP BY account_analytic_line.account_id" ,(ids2,)) for account_id, sum in cr.fetchall(): res[account_id] = sum for obj_id in ids: res.setdefault(obj_id, '') for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if res[obj_id] < res.get(child_id, ''): res[obj_id] = res.get(child_id, '') for id in ids: res[id] = res.get(id, '') return res |
where account_id =ANY(%s) \ | where account_id IN %s \ | def _last_worked_date_calc (self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: cr.execute("select account_analytic_line.account_id, max(date) \ from account_analytic_line \ where account_id =ANY(%s) \ and invoice_id is null \ GROUP BY account_analytic_line.account_id" ,(ids2,)) for account_id, sum in cr.fetchall(): res[account_id] = sum for obj_id in ids: res.setdefault(obj_id, '') for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if res[obj_id] < res.get(child_id, ''): res[obj_id] = res.get(child_id, '') for id in ids: res[id] = res.get(id, '') return res |
GROUP BY account_analytic_line.account_id" ,(ids2,)) | GROUP BY account_analytic_line.account_id" ,(parent_ids,)) | def _last_worked_date_calc (self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: cr.execute("select account_analytic_line.account_id, max(date) \ from account_analytic_line \ where account_id =ANY(%s) \ and invoice_id is null \ GROUP BY account_analytic_line.account_id" ,(ids2,)) for account_id, sum in cr.fetchall(): res[account_id] = sum for obj_id in ids: res.setdefault(obj_id, '') for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if res[obj_id] < res.get(child_id, ''): res[obj_id] = res.get(child_id, '') for id in ids: res[id] = res.get(id, '') return res |
ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: | parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', ids)])) if parent_ids: | def _last_invoice_date_calc (self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: cr.execute ("select account_analytic_line.account_id, \ date(max(account_invoice.date_invoice)) \ from account_analytic_line \ join account_invoice \ on account_analytic_line.invoice_id = account_invoice.id \ where account_analytic_line.account_id =ANY(%s) \ and account_analytic_line.invoice_id is not null \ GROUP BY account_analytic_line.account_id",(ids2,)) for account_id, sum in cr.fetchall(): res[account_id] = sum for obj_id in ids: res.setdefault(obj_id, '') for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if res[obj_id] < res.get(child_id, ''): res[obj_id] = res.get(child_id, '') for id in ids: res[id] = res.get(id, '') return res |
where account_analytic_line.account_id =ANY(%s) \ | where account_analytic_line.account_id IN %s \ | def _last_invoice_date_calc (self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: cr.execute ("select account_analytic_line.account_id, \ date(max(account_invoice.date_invoice)) \ from account_analytic_line \ join account_invoice \ on account_analytic_line.invoice_id = account_invoice.id \ where account_analytic_line.account_id =ANY(%s) \ and account_analytic_line.invoice_id is not null \ GROUP BY account_analytic_line.account_id",(ids2,)) for account_id, sum in cr.fetchall(): res[account_id] = sum for obj_id in ids: res.setdefault(obj_id, '') for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if res[obj_id] < res.get(child_id, ''): res[obj_id] = res.get(child_id, '') for id in ids: res[id] = res.get(id, '') return res |
GROUP BY account_analytic_line.account_id",(ids2,)) | GROUP BY account_analytic_line.account_id",(parent_ids,)) | def _last_invoice_date_calc (self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: cr.execute ("select account_analytic_line.account_id, \ date(max(account_invoice.date_invoice)) \ from account_analytic_line \ join account_invoice \ on account_analytic_line.invoice_id = account_invoice.id \ where account_analytic_line.account_id =ANY(%s) \ and account_analytic_line.invoice_id is not null \ GROUP BY account_analytic_line.account_id",(ids2,)) for account_id, sum in cr.fetchall(): res[account_id] = sum for obj_id in ids: res.setdefault(obj_id, '') for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if res[obj_id] < res.get(child_id, ''): res[obj_id] = res.get(child_id, '') for id in ids: res[id] = res.get(id, '') return res |
ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: | parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', ids)])) if parent_ids: | def _last_worked_invoiced_date_calc (self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: cr.execute("select account_analytic_line.account_id, max(date) \ from account_analytic_line \ where account_id =ANY(%s) \ and invoice_id is not null \ GROUP BY account_analytic_line.account_id;",(ids2,)) for account_id, sum in cr.fetchall(): res[account_id] = sum for obj_id in ids: res.setdefault(obj_id, '') for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if res[obj_id] < res.get(child_id, ''): res[obj_id] = res.get(child_id, '') for id in ids: res[id] = res.get(id, '') return res |
where account_id =ANY(%s) \ | where account_id IN %s \ | def _last_worked_invoiced_date_calc (self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: cr.execute("select account_analytic_line.account_id, max(date) \ from account_analytic_line \ where account_id =ANY(%s) \ and invoice_id is not null \ GROUP BY account_analytic_line.account_id;",(ids2,)) for account_id, sum in cr.fetchall(): res[account_id] = sum for obj_id in ids: res.setdefault(obj_id, '') for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if res[obj_id] < res.get(child_id, ''): res[obj_id] = res.get(child_id, '') for id in ids: res[id] = res.get(id, '') return res |
GROUP BY account_analytic_line.account_id;",(ids2,)) | GROUP BY account_analytic_line.account_id;",(parent_ids,)) | def _last_worked_invoiced_date_calc (self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: cr.execute("select account_analytic_line.account_id, max(date) \ from account_analytic_line \ where account_id =ANY(%s) \ and invoice_id is not null \ GROUP BY account_analytic_line.account_id;",(ids2,)) for account_id, sum in cr.fetchall(): res[account_id] = sum for obj_id in ids: res.setdefault(obj_id, '') for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if res[obj_id] < res.get(child_id, ''): res[obj_id] = res.get(child_id, '') for id in ids: res[id] = res.get(id, '') return res |
ids2 = self.search(cr, uid, [('parent_id', 'child_of', [id])]) if ids2: | parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', ids)])) if parent_ids: | def _month(self, cr, uid, ids, name, arg, context=None): res = {} for id in ids: ids2 = self.search(cr, uid, [('parent_id', 'child_of', [id])]) if ids2: cr.execute('SELECT DISTINCT(month_id) FROM account_analytic_analysis_summary_month ' \ 'WHERE account_id =ANY(%s) AND unit_amount <> 0.0',(ids2,)) res[id] = [int(id * 1000000 + int(x[0])) for x in cr.fetchall()] else: res[id] = [] return res |
'WHERE account_id =ANY(%s) AND unit_amount <> 0.0',(ids2,)) | 'WHERE account_id IN %s AND unit_amount <> 0.0',(parent_ids,)) | def _month(self, cr, uid, ids, name, arg, context=None): res = {} for id in ids: ids2 = self.search(cr, uid, [('parent_id', 'child_of', [id])]) if ids2: cr.execute('SELECT DISTINCT(month_id) FROM account_analytic_analysis_summary_month ' \ 'WHERE account_id =ANY(%s) AND unit_amount <> 0.0',(ids2,)) res[id] = [int(id * 1000000 + int(x[0])) for x in cr.fetchall()] else: res[id] = [] return res |
ids2 = self.search(cr, uid, [('parent_id', 'child_of', [id])]) if ids2: | parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', ids)])) if parent_ids: | def _user(self, cr, uid, ids, name, arg, context=None): res = {} cr.execute('SELECT MAX(id) FROM res_users') max_user = cr.fetchone()[0] for id in ids: ids2 = self.search(cr, uid, [('parent_id', 'child_of', [id])]) if ids2: cr.execute('SELECT DISTINCT("user") FROM account_analytic_analysis_summary_user ' \ 'WHERE account_id =ANY(%s) AND unit_amount <> 0.0',(ids2,)) res[id] = [int((id * max_user) + x[0]) for x in cr.fetchall()] else: res[id] = [] return res |
'WHERE account_id =ANY(%s) AND unit_amount <> 0.0',(ids2,)) | 'WHERE account_id IN %s AND unit_amount <> 0.0',(parent_ids,)) | def _user(self, cr, uid, ids, name, arg, context=None): res = {} cr.execute('SELECT MAX(id) FROM res_users') max_user = cr.fetchone()[0] for id in ids: ids2 = self.search(cr, uid, [('parent_id', 'child_of', [id])]) if ids2: cr.execute('SELECT DISTINCT("user") FROM account_analytic_analysis_summary_user ' \ 'WHERE account_id =ANY(%s) AND unit_amount <> 0.0',(ids2,)) res[id] = [int((id * max_user) + x[0]) for x in cr.fetchall()] else: res[id] = [] return res |
account_ids2 = account_obj.search(cr, uid, [('parent_id', 'child_of', account_ids)]) if account_ids2: | parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', account_ids)])) if parent_ids: | def _unit_amount(self, cr, uid, ids, name, arg, context=None): res = {} account_obj = self.pool.get('account.analytic.account') cr.execute('SELECT MAX(id) FROM res_users') max_user = cr.fetchone()[0] account_ids = [int(str(x/max_user - (x%max_user == 0 and 1 or 0))) for x in ids] user_ids = [int(str(x-((x/max_user - (x%max_user == 0 and 1 or 0)) *max_user))) for x in ids] account_ids2 = account_obj.search(cr, uid, [('parent_id', 'child_of', account_ids)]) if account_ids2: cr.execute('SELECT id, unit_amount ' \ 'FROM account_analytic_analysis_summary_user ' \ 'WHERE account_id =ANY(%s) ' \ 'AND "user" =ANY(%s)',(account_ids2, user_ids,)) for sum_id, unit_amount in cr.fetchall(): res[sum_id] = unit_amount for obj_id in ids: res.setdefault(obj_id, 0.0) for child_id in account_obj.search(cr, uid, [('parent_id', 'child_of', [int(str(obj_id/max_user - (obj_id%max_user == 0 and 1 or 0)))])]): if child_id != int(str(obj_id/max_user - (obj_id%max_user == 0 and 1 or 0))): res[obj_id] += res.get((child_id * max_user) + obj_id -((obj_id/max_user - (obj_id%max_user == 0 and 1 or 0)) * max_user), 0.0) for id in ids: res[id] = round(res.get(id, 0.0), 2) return res |
'WHERE account_id =ANY(%s) ' \ 'AND "user" =ANY(%s)',(account_ids2, user_ids,)) | 'WHERE account_id IN %s ' \ 'AND "user" IN %s',(parent_ids, user_ids,)) | def _unit_amount(self, cr, uid, ids, name, arg, context=None): res = {} account_obj = self.pool.get('account.analytic.account') cr.execute('SELECT MAX(id) FROM res_users') max_user = cr.fetchone()[0] account_ids = [int(str(x/max_user - (x%max_user == 0 and 1 or 0))) for x in ids] user_ids = [int(str(x-((x/max_user - (x%max_user == 0 and 1 or 0)) *max_user))) for x in ids] account_ids2 = account_obj.search(cr, uid, [('parent_id', 'child_of', account_ids)]) if account_ids2: cr.execute('SELECT id, unit_amount ' \ 'FROM account_analytic_analysis_summary_user ' \ 'WHERE account_id =ANY(%s) ' \ 'AND "user" =ANY(%s)',(account_ids2, user_ids,)) for sum_id, unit_amount in cr.fetchall(): res[sum_id] = unit_amount for obj_id in ids: res.setdefault(obj_id, 0.0) for child_id in account_obj.search(cr, uid, [('parent_id', 'child_of', [int(str(obj_id/max_user - (obj_id%max_user == 0 and 1 or 0)))])]): if child_id != int(str(obj_id/max_user - (obj_id%max_user == 0 and 1 or 0))): res[obj_id] += res.get((child_id * max_user) + obj_id -((obj_id/max_user - (obj_id%max_user == 0 and 1 or 0)) * max_user), 0.0) for id in ids: res[id] = round(res.get(id, 0.0), 2) return res |
account_ids2 = account_obj.search(cr, uid, [('parent_id', 'child_of', account_ids)]) if account_ids2: | parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', account_ids)])) if parent_ids: | def _unit_amount(self, cr, uid, ids, name, arg, context=None): res = {} account_obj = self.pool.get('account.analytic.account') account_ids = [int(str(int(x))[:-6]) for x in ids] month_ids = [int(str(int(x))[-6:]) for x in ids] account_ids2 = account_obj.search(cr, uid, [('parent_id', 'child_of', account_ids)]) if account_ids2: cr.execute('SELECT id, unit_amount ' \ 'FROM account_analytic_analysis_summary_month ' \ 'WHERE account_id =ANY(%s) ' \ 'AND month_id =ANY(%s) ',(account_ids2, month_ids,)) for sum_id, unit_amount in cr.fetchall(): res[sum_id] = unit_amount for obj_id in ids: res.setdefault(obj_id, 0.0) for child_id in account_obj.search(cr, uid, [('parent_id', 'child_of', [int(str(int(obj_id))[:-6])])]): if child_id != int(str(int(obj_id))[:-6]): res[obj_id] += res.get(int(child_id * 1000000 + int(str(int(obj_id))[-6:])), 0.0) for id in ids: res[id] = round(res.get(id, 0.0), 2) return res |
'WHERE account_id =ANY(%s) ' \ 'AND month_id =ANY(%s) ',(account_ids2, month_ids,)) | 'WHERE account_id IN %s ' \ 'AND month_id IN %s ',(parent_ids, month_ids,)) | def _unit_amount(self, cr, uid, ids, name, arg, context=None): res = {} account_obj = self.pool.get('account.analytic.account') account_ids = [int(str(int(x))[:-6]) for x in ids] month_ids = [int(str(int(x))[-6:]) for x in ids] account_ids2 = account_obj.search(cr, uid, [('parent_id', 'child_of', account_ids)]) if account_ids2: cr.execute('SELECT id, unit_amount ' \ 'FROM account_analytic_analysis_summary_month ' \ 'WHERE account_id =ANY(%s) ' \ 'AND month_id =ANY(%s) ',(account_ids2, month_ids,)) for sum_id, unit_amount in cr.fetchall(): res[sum_id] = unit_amount for obj_id in ids: res.setdefault(obj_id, 0.0) for child_id in account_obj.search(cr, uid, [('parent_id', 'child_of', [int(str(int(obj_id))[:-6])])]): if child_id != int(str(int(obj_id))[:-6]): res[obj_id] += res.get(int(child_id * 1000000 + int(str(int(obj_id))[-6:])), 0.0) for id in ids: res[id] = round(res.get(id, 0.0), 2) return res |
item.set_properties(pixbuf = gcompris.utils.load_pixmap(gcompris.skin.image_to_skin(self.tools[self.current_tool][1]))) | item.set_properties(pixbuf = gcompris.utils.load_pixmap(self.tools[self.current_tool][1])) | def assign_tool(self, newtool): # Deactivate old button item = self.tools[self.current_tool][4] item.set_properties(pixbuf = gcompris.utils.load_pixmap(gcompris.skin.image_to_skin(self.tools[self.current_tool][1]))) |
item.set_properties(pixbuf = gcompris.utils.load_pixmap(gcompris.skin.image_to_skin(self.tools[self.current_tool][2]))) | item.set_properties(pixbuf = gcompris.utils.load_pixmap(self.tools[self.current_tool][2])) | def assign_tool(self, newtool): # Deactivate old button item = self.tools[self.current_tool][4] item.set_properties(pixbuf = gcompris.utils.load_pixmap(gcompris.skin.image_to_skin(self.tools[self.current_tool][1]))) |
if not self.sun_on : | if not self.sun_on and not self.cloud_on: | def sun_item_event(self, widget, target, event=None): if event.type == gtk.gdk.BUTTON_PRESS: if event.button == 1: if not self.sun_on : gcompris.utils.item_focus_remove(self.sunitem, None) gcompris.sound.play_ogg("sounds/bleep.wav") trip_y = self.sunitem_target_y1 - self.sunitem_orig_y1 if self.sun_connect_handler: self.sunitem.disconnect(self.sun_connect_handler) self.sun_connect_handler = self.sunitem.connect("animation-finished", self.sun_up_arrived) self.sunitem.animate(0, trip_y, 1, 1, True, int(self.timerinc*abs(trip_y)), self.step_time, goocanvas.ANIMATE_FREEZE) |
lang = re.match(r"== {{=([a-z]+)=}} ==", l) | lang = re.match(r"==[ ]+{{=([a-z]+)=}}[ ]+==", l) | def parseText(self): if self.verbose: print "Processing " + self.titleContent inWord = wiktio.Word() |
self.color_fill = 0xA0 self.color_stroke = 0xFF self.colors = [ 0x00000000L, 0xFF000000L, 0xFFFF0c00L, 0xB9BC0D00L, 0x33FF0000L, 0x83189100L, 0xC2C2C200L, 0x1010FF00L] | self.colors = [ C_BLACK, C_RED, C_YELLOW, C_BROWN, C_GREEN, C_MAGENTA, C_GREY, C_BLUE] | def __init__(self, gcomprisBoard): |
fill_color_rgba = self.colors[i] | self.color_stroke, | fill_color_rgba = self.colors[i] | C_STROKE, | def draw_colors(self): |
def reorder_coord(self, x1, y1, x2, y2): p = [x1, y1, x2, y2] if(x1>x2): p[0] = x2 p[2] = x1 if(y1>y2): p[1] = y2 p[3] = y1 return p | def draw_drawing_area(self, step): |
|
y_text = y1 - 15 | y_text = y1 - 10 | def draw_grid(self, x1, x2, y1, y2, step): |
text = int((i-x1) / step), | text = labelName_x, | def draw_grid(self, x1, x2, y1, y2, step): |
x = i, | x = label_x, | def draw_grid(self, x1, x2, y1, y2, step): |
fill_color_rgba = 0x000000FFL | fill_color_rgba = 0x000000FFL, anchor = gtk.ANCHOR_CENTER, alignment = pango.ALIGN_CENTER | def draw_grid(self, x1, x2, y1, y2, step): |
fill_color_rgba=0x000000FFL | fill_color_rgba=0x000000FFL, | def draw_grid(self, x1, x2, y1, y2, step): |
item.props.fill_color_rgba = self.colors[self.current_color] | self.color_fill | item.props.fill_color_rgba = self.colors[self.current_color] | C_FILL | def fillin_item_event(self, item, target, event, drawing_item_index): if event.type == gtk.gdk.BUTTON_PRESS: if event.button == 1: if self.tools[self.current_tool][0] == "FILL": item.props.fill_color_rgba = self.colors[self.current_color] | self.color_fill # Reset the item in our list self.current_drawing[drawing_item_index]['fill_color_rgba'] = \ self.colors[self.current_color] | self.color_fill gcompris.sound.play_ogg("sounds/paint1.wav") return True return False |
self.colors[self.current_color] | self.color_fill | self.colors[self.current_color] | C_FILL | def fillin_item_event(self, item, target, event, drawing_item_index): if event.type == gtk.gdk.BUTTON_PRESS: if event.button == 1: if self.tools[self.current_tool][0] == "FILL": item.props.fill_color_rgba = self.colors[self.current_color] | self.color_fill # Reset the item in our list self.current_drawing[drawing_item_index]['fill_color_rgba'] = \ self.colors[self.current_color] | self.color_fill gcompris.sound.play_ogg("sounds/paint1.wav") return True return False |
item.props.stroke_color_rgba = self.colors[self.current_color] | self.color_stroke | item.props.stroke_color_rgba = self.colors[self.current_color] | C_STROKE | def fillout_item_event(self, item, target, event, drawing_item_index): if event.type == gtk.gdk.BUTTON_PRESS: if event.button == 1: if self.tools[self.current_tool][0] == "FILL": item.props.stroke_color_rgba = self.colors[self.current_color] | self.color_stroke # Reset the item in our list self.current_drawing[drawing_item_index]['stroke_color_rgba'] = \ self.colors[self.current_color] | self.color_stroke gcompris.sound.play_ogg("sounds/paint1.wav") return True return False |
self.colors[self.current_color] | self.color_stroke | self.colors[self.current_color] | C_STROKE | def fillout_item_event(self, item, target, event, drawing_item_index): if event.type == gtk.gdk.BUTTON_PRESS: if event.button == 1: if self.tools[self.current_tool][0] == "FILL": item.props.stroke_color_rgba = self.colors[self.current_color] | self.color_stroke # Reset the item in our list self.current_drawing[drawing_item_index]['stroke_color_rgba'] = \ self.colors[self.current_color] | self.color_stroke gcompris.sound.play_ogg("sounds/paint1.wav") return True return False |
stroke_color_rgba = self.colors[self.current_color] | self.color_stroke, | stroke_color_rgba = self.colors[self.current_color] | C_STROKE, | def create_item_event(self, item, target, event): |
'stroke_color_rgba' : self.colors[self.current_color] | self.color_stroke, | 'stroke_color_rgba' : self.colors[self.current_color] | C_STROKE, | def create_item_event(self, item, target, event): |
fill_color_rgba = self.colors[self.current_color] | self.color_fill, | fill_color_rgba = self.colors[self.current_color] | C_FILL, | def create_item_event(self, item, target, event): |
'fill_color_rgba':self.colors[self.current_color] | self.color_fill, | 'fill_color_rgba':self.colors[self.current_color] | C_FILL, | def create_item_event(self, item, target, event): |
[{'width': 280.0, 'line_width': 1.0, 'height': 20.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 80.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'width': 280.0, 'line_width': 1.0, 'height': 20.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 420.0, 'tool': 'FILL_RECT', 'x': 140.0}] | [{'width': 280.0, 'line_width': 1.0, 'height': 20.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 80.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'width': 280.0, 'line_width': 1.0, 'height': 20.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 420.0, 'tool': 'FILL_RECT', 'x': 140.0}] | def init_item_list(self): |
[{'width': 160.0, 'height': 40.0, 'line_width': 1.0, 'fill_color_rgba': 0x1010FFA0L, 'stroke_color_rgba': 255L, 'y': 40.0, 'x': 200.0, 'tool': 'FILL_RECT'}] | [{'width': 160.0, 'height': 40.0, 'line_width': 1.0, 'fill_color_rgba': C_BLUE|C_FILL, 'stroke_color_rgba': C_STROKE, 'y': 40.0, 'x': 200.0, 'tool': 'FILL_RECT'}] | def init_item_list(self): |
[{'width': 40.0, 'height': 40.0, 'line_width': 1.0,'fill_color_rgba': 0x1010FFA0L, 'stroke_color_rgba': 255L, 'y': 40.0, 'x': 160.0, 'tool': 'FILL_RECT'}, {'width': 400.0-360.0, 'height': 80.0-40.0, 'line_width': 1.0,'fill_color_rgba': 0x1010FFA0L, 'stroke_color_rgba': 255L, 'y': 40.0, 'x': 360.0, 'tool': 'FILL_RECT'}, {'width': 200.0-160.0, 'height': 480.0-440.0, 'line_width': 1.0, 'fill_color_rgba': 0x1010FFA0L, 'stroke_color_rgba': 255L, 'y': 440.0, 'x': 160.0, 'tool': 'FILL_RECT'}, {'width': 400.0-360.0, 'height': 480.0-440.0, 'line_width': 1.0,'fill_color_rgba': 0x1010FFA0L, 'stroke_color_rgba': 255L, 'y': 440.0, 'x': 360.0, 'tool': 'FILL_RECT'}] | [{'width': 40.0, 'height': 40.0, 'line_width': 1.0,'fill_color_rgba': C_BLUE|C_FILL, 'stroke_color_rgba': C_STROKE, 'y': 40.0, 'x': 160.0, 'tool': 'FILL_RECT'}, {'width': 400.0-360.0, 'height': 80.0-40.0, 'line_width': 1.0,'fill_color_rgba': C_BLUE|C_FILL, 'stroke_color_rgba': C_STROKE, 'y': 40.0, 'x': 360.0, 'tool': 'FILL_RECT'}, {'width': 200.0-160.0, 'height': 480.0-440.0, 'line_width': 1.0, 'fill_color_rgba': C_BLUE|C_FILL, 'stroke_color_rgba': C_STROKE, 'y': 440.0, 'x': 160.0, 'tool': 'FILL_RECT'}, {'width': 400.0-360.0, 'height': 480.0-440.0, 'line_width': 1.0,'fill_color_rgba': C_BLUE|C_FILL, 'stroke_color_rgba': C_STROKE, 'y': 440.0, 'x': 360.0, 'tool': 'FILL_RECT'}] | def init_item_list(self): |
[{'width': 200.0-180.0, 'height': 360.0-200.0, 'stroke_color_rgba': 0x1010FFFFL, 'line_width': 4.0, 'y': 200.0, 'x': 180.0, 'tool': 'RECT'}, {'width': 340.0-180.0, 'height': 400.0-380.0, 'stroke_color_rgba': 0x1010FFFFL, 'line_width': 4.0, 'y':380.0, 'x': 180.0, 'tool': 'RECT'}, {'width': 380.0-360.0, 'height': 400.0-240.0, 'stroke_color_rgba': 0x1010FFFFL, 'line_width': 4.0, 'y': 240.0, 'x': 360.0, 'tool': 'RECT'}, {'width': 380.0-220.0, 'height': 220.0-200.0, 'stroke_color_rgba': 0x1010FFFFL, 'line_width': 4.0, 'y': 200.0, 'x': 220.0, 'tool': 'RECT'}] | [{'width': 200.0-180.0, 'height': 360.0-200.0, 'stroke_color_rgba': C_BLUE|C_STROKE, 'line_width': 4.0, 'y': 200.0, 'x': 180.0, 'tool': 'RECT'}, {'width': 340.0-180.0, 'height': 400.0-380.0, 'stroke_color_rgba': C_BLUE|C_STROKE, 'line_width': 4.0, 'y':380.0, 'x': 180.0, 'tool': 'RECT'}, {'width': 380.0-360.0, 'height': 400.0-240.0, 'stroke_color_rgba': C_BLUE|C_STROKE, 'line_width': 4.0, 'y': 240.0, 'x': 360.0, 'tool': 'RECT'}, {'width': 380.0-220.0, 'height': 220.0-200.0, 'stroke_color_rgba': C_BLUE|C_STROKE, 'line_width': 4.0, 'y': 200.0, 'x': 220.0, 'tool': 'RECT'}] | def init_item_list(self): |
[{'tool': 'LINE', 'points': (200.0, 120.0, 280.0, 120.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (280.0, 120.0, 280.0,240.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (200.0, 120.0, 200.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (200.0, 180.0, 280.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}] | [{'tool': 'LINE', 'points': (200.0, 120.0, 280.0, 120.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (280.0, 120.0, 280.0,240.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (200.0, 120.0, 200.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (200.0, 180.0, 280.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}] | def init_item_list(self): |
[{'tool': 'LINE', 'points': (240.0, 240.0, 320.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (300.0, 180.0, 320.0,200.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (300.0, 180.0, 320.0, 160.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (240.0, 180.0, 300.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (320.0, 100.0, 320.0, 160.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool':'LINE', 'points': (240.0, 100.0, 320.0, 100.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (240.0, 100.0, 240.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (320.0, 200.0, 320.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}] | [{'tool': 'LINE', 'points': (240.0, 240.0, 320.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (300.0, 180.0, 320.0,200.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (300.0, 180.0, 320.0, 160.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (240.0, 180.0, 300.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (320.0, 100.0, 320.0, 160.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool':'LINE', 'points': (240.0, 100.0, 320.0, 100.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (240.0, 100.0, 240.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (320.0, 200.0, 320.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}] | def init_item_list(self): |
[{'width': 360.0-200.0, 'height': 360.0-180.0, 'stroke_color_rgba': 0x1010FFFFL, 'line_width': 4.0, 'y': 180.0, 'x': 200.0, 'tool': 'RECT'}, {'radius_x': 20, 'radius_y': 20, 'line_width': 1.0, 'fill_color_rgba': 0x1010FFA0L, 'stroke_color_rgba': 255L, 'center_y': 280.0+20, 'center_x': 300.0+20, 'tool': 'FILL_CIRCLE'}, {'width': 320.0-240.0, 'height': 260.0-200.0, 'line_width': 1.0, 'fill_color_rgba': 0x1010FFA0L, 'stroke_color_rgba': 255L, 'y': 200.0, 'x': 240.0, 'tool': 'FILL_RECT'}], | [{'width': 360.0-200.0, 'height': 360.0-180.0, 'stroke_color_rgba': C_BLUE|C_STROKE, 'line_width': 4.0, 'y': 180.0, 'x': 200.0, 'tool': 'RECT'}, {'radius_x': 20, 'radius_y': 20, 'line_width': 1.0, 'fill_color_rgba': C_BLUE|C_FILL, 'stroke_color_rgba': C_STROKE, 'center_y': 280.0+20, 'center_x': 300.0+20, 'tool': 'FILL_CIRCLE'}, {'width': 320.0-240.0, 'height': 260.0-200.0, 'line_width': 1.0, 'fill_color_rgba': C_BLUE|C_FILL, 'stroke_color_rgba': C_STROKE, 'y': 200.0, 'x': 240.0, 'tool': 'FILL_RECT'}], | def init_item_list(self): |
[{'radius_x': 50, 'radius_y': 50, 'stroke_color_rgba': 0x1010FFFFL, 'center_y': 40.0+50, 'center_x': 160.0+50, 'tool': 'CIRCLE', 'line_width': 5.0}, {'radius_x': 30, 'radius_y': 30, 'line_width': 1.0, 'fill_color_rgba': 0x1010FFA0L, 'stroke_color_rgba': 255L, 'center_y': 60.0+30, 'center_x': 180.0+30, 'tool': 'FILL_CIRCLE'}] | [{'radius_x': 50, 'radius_y': 50, 'stroke_color_rgba': C_BLUE|C_STROKE, 'center_y': 40.0+50, 'center_x': 160.0+50, 'tool': 'CIRCLE', 'line_width': 5.0}, {'radius_x': 30, 'radius_y': 30, 'line_width': 1.0, 'fill_color_rgba': C_BLUE|C_FILL, 'stroke_color_rgba': C_STROKE, 'center_y': 60.0+30, 'center_x': 180.0+30, 'tool': 'FILL_CIRCLE'}] | def init_item_list(self): |
[{'tool': 'LINE', 'points': (140.0, 260.0, 260.0, 20.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (140.0, 260.0, 260.0, 500.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (260.0, 500.0, 420.0, 260.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (260.0, 20.0, 420.0, 260.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}] | [{'tool': 'LINE', 'points': (140.0, 260.0, 260.0, 20.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (140.0, 260.0, 260.0, 500.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (260.0, 500.0, 420.0, 260.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (260.0, 20.0, 420.0, 260.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}] | def init_item_list(self): |
[{'tool': 'LINE', 'points': (220.0, 240.0, 220.0, 340.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'radius_x': 40, 'line_width': 1.0, 'radius_y': 50, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'center_y': 140.0+50, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+40}, {'radius_x': 40, 'line_width': 1.0, 'radius_y': 50, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 80.0+50, 'tool': 'FILL_CIRCLE', 'center_x': 300.0+40}, {'tool': 'LINE', 'points': (340.0, 180.0, 340.0, 280.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}] | [{'tool': 'LINE', 'points': (220.0, 240.0, 220.0, 340.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'radius_x': 40, 'line_width': 1.0, 'radius_y': 50, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'center_y': 140.0+50, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+40}, {'radius_x': 40, 'line_width': 1.0, 'radius_y': 50, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 80.0+50, 'tool': 'FILL_CIRCLE', 'center_x': 300.0+40}, {'tool': 'LINE', 'points': (340.0, 180.0, 340.0, 280.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}] | def init_item_list(self): |
[{'radius_x': 100, 'radius_y': 100, 'stroke_color_rgba': 0x1010FFFFL, 'line_width': 5.0, 'center_y': 140.0+100, 'tool': 'CIRCLE', 'center_x': 180.0+100}, {'tool': 'LINE', 'points': (280.0, 160.0, 280.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'tool': 'LINE', 'points': (280.0, 240.0, 320.0, 200.0), 'line_width': 8.0, 'stroke_color_rgba': 352271359L}, {'tool': 'LINE', 'points': (220.0, 280.0, 280.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 4294905087L}] | [{'radius_x': 100, 'radius_y': 100, 'stroke_color_rgba': C_BLUE|C_STROKE, 'line_width': 5.0, 'center_y': 140.0+100, 'tool': 'CIRCLE', 'center_x': 180.0+100}, {'tool': 'LINE', 'points': (280.0, 160.0, 280.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'tool': 'LINE', 'points': (280.0, 240.0, 320.0, 200.0), 'line_width': 8.0, 'stroke_color_rgba': C_GREEN|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 280.0, 280.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}] | def init_item_list(self): |
[{'width': 280.0-260.0, 'line_width': 1.0, 'height': 120.0-100.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 100.0, 'x': 260.0, 'tool': 'FILL_RECT'}, {'width': 300.0-240.0, 'line_width': 1.0, 'height': 140.0-120.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xffff0cA0L, 'y': 120.0, 'x': 240.0, 'tool': 'FILL_RECT'}, {'width': 320.0-220.0, 'line_width': 1.0, 'height': 160.0-140.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 140.0, 'tool': 'FILL_RECT', 'x': 220.0}, {'width': 340.0-200.0, 'line_width': 1.0, 'height': 180.0-160.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 360.0-180.0, 'line_width': 1.0, 'height': 200.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xC2C2C2A0L, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 180.0}] | [{'width': 280.0-260.0, 'line_width': 1.0, 'height': 120.0-100.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 100.0, 'x': 260.0, 'tool': 'FILL_RECT'}, {'width': 300.0-240.0, 'line_width': 1.0, 'height': 140.0-120.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_YELLOW|C_FILL, 'y': 120.0, 'x': 240.0, 'tool': 'FILL_RECT'}, {'width': 320.0-220.0, 'line_width': 1.0, 'height': 160.0-140.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 140.0, 'tool': 'FILL_RECT', 'x': 220.0}, {'width': 340.0-200.0, 'line_width': 1.0, 'height': 180.0-160.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 360.0-180.0, 'line_width': 1.0, 'height': 200.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREY|C_FILL, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 180.0}] | def init_item_list(self): |
[{'width': 180.0-140.0, 'line_width': 1.0, 'height': 60.0-20.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 20.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'width': 240.0-180.0, 'line_width': 1.0, 'height': 120.0-60.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 60.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 320.0-240.0, 'line_width': 1.0, 'height': 200.0-120.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xffff0cA0L, 'y': 120.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'width': 420.0-320.0, 'line_width': 1.0, 'height': 300.0-200.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 320.0}] | [{'width': 180.0-140.0, 'line_width': 1.0, 'height': 60.0-20.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 20.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'width': 240.0-180.0, 'line_width': 1.0, 'height': 120.0-60.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 60.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 320.0-240.0, 'line_width': 1.0, 'height': 200.0-120.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_YELLOW|C_FILL, 'y': 120.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'width': 420.0-320.0, 'line_width': 1.0, 'height': 300.0-200.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 320.0}] | def init_item_list(self): |
[{'width': 420.0-140.0, 'line_width': 1.0, 'height': 500.0-460.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x000000A0L, 'y': 460.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'width': 260.0-240.0, 'line_width': 1.0, 'height': 460.0-360.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 360.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'radius_x': 70, 'line_width': 1.0, 'radius_y': 40, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 280.0+40, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+70}] | [{'width': 420.0-140.0, 'line_width': 1.0, 'height': 500.0-460.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLACK|C_FILL, 'y': 460.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'width': 260.0-240.0, 'line_width': 1.0, 'height': 460.0-360.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 360.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'radius_x': 70, 'line_width': 1.0, 'radius_y': 40, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 280.0+40, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+70}] | def init_item_list(self): |
[{'width': 280.0-260.0, 'line_width': 1.0, 'height': 320.0-120.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 120.0, 'tool': 'FILL_RECT', 'x': 260.0}, {'width': 300.0-260.0, 'line_width': 1.0, 'height': 120.0-80.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 80.0, 'tool': 'FILL_RECT', 'x': 260.0}, {'width': 320.0-300.0, 'line_width': 1.0, 'height': 120.0-100.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 100.0, 'tool': 'FILL_RECT', 'x': 300.0}, {'width': 280.0-200.0, 'line_width': 1.0, 'height': 380.0-320.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 320.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 220.0-200.0, 'line_width': 1.0, 'height': 320.0-300.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 300.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 260.0-240.0, 'line_width': 1.0, 'height': 460.0-380.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 380.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'width': 280.0-260.0, 'line_width': 1.0, 'height': 460.0-440.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 440.0, 'tool': 'FILL_RECT', 'x': 260.0}] | [{'width': 280.0-260.0, 'line_width': 1.0, 'height': 320.0-120.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 120.0, 'tool': 'FILL_RECT', 'x': 260.0}, {'width': 300.0-260.0, 'line_width': 1.0, 'height': 120.0-80.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 80.0, 'tool': 'FILL_RECT', 'x': 260.0}, {'width': 320.0-300.0, 'line_width': 1.0, 'height': 120.0-100.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 100.0, 'tool': 'FILL_RECT', 'x': 300.0}, {'width': 280.0-200.0, 'line_width': 1.0, 'height': 380.0-320.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 320.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 220.0-200.0, 'line_width': 1.0, 'height': 320.0-300.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 300.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 260.0-240.0, 'line_width': 1.0, 'height': 460.0-380.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 380.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'width': 280.0-260.0, 'line_width': 1.0, 'height': 460.0-440.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 440.0, 'tool': 'FILL_RECT', 'x': 260.0}] | def init_item_list(self): |
[{'width': 180.0-160.0, 'line_width': 1.0, 'height': 200.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 160.0}, {'width': 340.0-180.0, 'line_width': 1.0, 'height': 240.0-200.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 200.0-180.0, 'line_width': 1.0, 'height': 280.0-240.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 240.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 340.0-320.0,'line_width': 1.0, 'height': 280.0-240.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 240.0, 'tool': 'FILL_RECT', 'x': 320.0}, {'width': 380.0-320.0, 'line_width': 1.0, 'height': 200.0-160.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 320.0}] | [{'width': 180.0-160.0, 'line_width': 1.0, 'height': 200.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 160.0}, {'width': 340.0-180.0, 'line_width': 1.0, 'height': 240.0-200.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 200.0-180.0, 'line_width': 1.0, 'height': 280.0-240.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 240.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 340.0-320.0,'line_width': 1.0, 'height': 280.0-240.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 240.0, 'tool': 'FILL_RECT', 'x': 320.0}, {'width': 380.0-320.0, 'line_width': 1.0, 'height': 200.0-160.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 320.0}] | def init_item_list(self): |
[{'radius_x': 90, 'line_width': 1.0, 'radius_y': 60, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xffff0cA0L, 'center_y': 160.0+60, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+90}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'center_y': 200.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 320.0+10}, {'width': 180.0-160.0, 'line_width': 1.0, 'height': 260.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xffff0cA0L, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 160.0}] | [{'radius_x': 90, 'line_width': 1.0, 'radius_y': 60, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_YELLOW|C_FILL, 'center_y': 160.0+60, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+90}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'center_y': 200.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 320.0+10}, {'width': 180.0-160.0, 'line_width': 1.0, 'height': 260.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_YELLOW|C_FILL, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 160.0}] | def init_item_list(self): |
[{'radius_x': 90, 'line_width': 1.0, 'radius_y': 100, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'center_y': 100.0+100, 'tool': 'FILL_CIRCLE', 'center_x': 200.0+90}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 30, 'stroke_color_rgba': 255L, 'stroke_color_rgba': 4294905087L, 'center_y': 320.0, 'tool': 'FILL_RECT', 'center_x': 240.0}, {'tool': 'LINE', 'points': (220.0, 260.0, 260.0, 320.0), 'line_width': 8.0, 'stroke_color_rgba': 4287383039L}, {'tool': 'LINE', 'points': (320.0, 320.0, 360.0, 260.0), 'line_width': 8.0, 'stroke_color_rgba': 4287383039L}] | [{'radius_x': 90, 'line_width': 1.0, 'radius_y': 100, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'center_y': 100.0+100, 'tool': 'FILL_CIRCLE', 'center_x': 200.0+90}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 30, 'stroke_color_rgba': C_STROKE, 'stroke_color_rgba': C_YELLOW|C_STROKE, 'center_y': 320.0, 'tool': 'FILL_RECT', 'center_x': 240.0}, {'tool': 'LINE', 'points': (220.0, 260.0, 260.0, 320.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}, {'tool': 'LINE', 'points': (320.0, 320.0, 360.0, 260.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}] | def init_item_list(self): |
[{'width': 360.0-200.0, 'line_width': 1.0, 'height': 340.0-240.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 240.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 280.0-240.0, 'line_width': 1.0, 'height': 340.0-280.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 280.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'width': 340.0-300.0, 'line_width': 1.0, 'height': 300.0-260.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 260.0, 'tool': 'FILL_RECT', 'x': 300.0}, {'tool': 'LINE', 'points': (200.0, 240.0, 280.0, 160.0), 'line_width': 8.0, 'stroke_color_rgba': 4287383039L}, {'tool': 'LINE', 'points': (280.0, 160.0, 360.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 4287383039L}] | [{'width': 360.0-200.0, 'line_width': 1.0, 'height': 340.0-240.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 240.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 280.0-240.0, 'line_width': 1.0, 'height': 340.0-280.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 280.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'width': 340.0-300.0, 'line_width': 1.0, 'height': 300.0-260.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 260.0, 'tool': 'FILL_RECT', 'x': 300.0}, {'tool': 'LINE', 'points': (200.0, 240.0, 280.0, 160.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}, {'tool': 'LINE', 'points': (280.0, 160.0, 360.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}] | def init_item_list(self): |
[{'radius_x': 20, 'line_width': 1.0, 'radius_y': 20, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'center_y': 240.0+20, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+20}, {'radius_x': 20, 'line_width': 1.0, 'radius_y': 20, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'center_y': 240.0+20, 'tool': 'FILL_CIRCLE', 'center_x': 280.0+20}, {'width': 220.0-160.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 160.0}, {'width': 300.0-220.0, 'line_width': 1.0, 'height': 260.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 220.0}, {'width': 320.0-300.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 300.0}, {'width': 280.0-240.0, 'line_width': 1.0, 'height': 260.0-200.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 240.0}] | [{'radius_x': 20, 'line_width': 1.0, 'radius_y': 20, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'center_y': 240.0+20, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+20}, {'radius_x': 20, 'line_width': 1.0, 'radius_y': 20, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'center_y': 240.0+20, 'tool': 'FILL_CIRCLE', 'center_x': 280.0+20}, {'width': 220.0-160.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 160.0}, {'width': 300.0-220.0, 'line_width': 1.0, 'height': 260.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 220.0}, {'width': 320.0-300.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 300.0}, {'width': 280.0-240.0, 'line_width': 1.0, 'height': 260.0-200.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 240.0}] | def init_item_list(self): |
[{'radius_x': 20, 'line_width': 1.0, 'radius_y': 20, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'center_y': 260.0+20, 'tool': 'FILL_CIRCLE', 'center_x': 160.0+20}, {'radius_x': 20, 'line_width': 1.0, 'radius_y': 20, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'center_y': 260.0+20, 'tool': 'FILL_CIRCLE', 'center_x': 320.0+20}, {'width': 380.0-160.0, 'line_width': 1.0, 'height': 280.0-220.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 160.0}, {'tool': 'LINE', 'points': (160.0, 200.0, 340.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'width': 200.0-180.0, 'line_width': 1.0, 'height': 220.0-200.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 360.0-320.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 320.0}, {'width': 300.0-280.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 280.0}] | [{'radius_x': 20, 'line_width': 1.0, 'radius_y': 20, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'center_y': 260.0+20, 'tool': 'FILL_CIRCLE', 'center_x': 160.0+20}, {'radius_x': 20, 'line_width': 1.0, 'radius_y': 20, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'center_y': 260.0+20, 'tool': 'FILL_CIRCLE', 'center_x': 320.0+20}, {'width': 380.0-160.0, 'line_width': 1.0, 'height': 280.0-220.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 160.0}, {'tool': 'LINE', 'points': (160.0, 200.0, 340.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'width': 200.0-180.0, 'line_width': 1.0, 'height': 220.0-200.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 360.0-320.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 320.0}, {'width': 300.0-280.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 280.0}] | def init_item_list(self): |
{'line_width': 8.0, 'points': (180.0, 80.0, 180.0, 440.0), 'tool': 'LINE', 'stroke_color_rgba': 0x1010FFFFL}, {'line_width': 8.0, 'points': (180.0, 460.0, 380.0, 460.0), 'tool': 'LINE', 'stroke_color_rgba': 0x1010FFFFL}, {'line_width': 8.0, 'points': (380.0, 80.0, 380.0, 440.0), 'tool': 'LINE', 'stroke_color_rgba': 0x1010FFFFL}, {'line_width': 8.0, 'points': (180.0, 60.0, 380.0, 60.0), 'tool': 'LINE', 'stroke_color_rgba': 0x1010FFFFL}, {'line_width': 8.0, 'points': (280.0, 320.0, 280.0, 420.0), 'tool': 'LINE', 'stroke_color_rgba': 2199425535L}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'center_y': 300.0+10, 'center_x': 260.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'center_y': 100.0+10, 'center_x': 240.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 100.0+10, 'center_x': 260.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'center_y': 100.0+10, 'center_x': 280.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x000000A0L, 'center_y': 100.0+10, 'center_x': 300.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xb9bc0dffL, 'center_y': 120.0+10, 'center_x': 260.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 120.0+10, 'center_x': 280.0+10, 'tool': 'FILL_CIRCLE'} | {'line_width': 8.0, 'points': (180.0, 80.0, 180.0, 440.0), 'tool': 'LINE', 'stroke_color_rgba': C_BLUE|C_STROKE}, {'line_width': 8.0, 'points': (180.0, 460.0, 380.0, 460.0), 'tool': 'LINE', 'stroke_color_rgba': C_BLUE|C_STROKE}, {'line_width': 8.0, 'points': (380.0, 80.0, 380.0, 440.0), 'tool': 'LINE', 'stroke_color_rgba': C_BLUE|C_STROKE}, {'line_width': 8.0, 'points': (180.0, 60.0, 380.0, 60.0), 'tool': 'LINE', 'stroke_color_rgba': C_BLUE|C_STROKE}, {'line_width': 8.0, 'points': (280.0, 320.0, 280.0, 420.0), 'tool': 'LINE', 'stroke_color_rgba': C_MAGENTA|C_STROKE}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'center_y': 300.0+10, 'center_x': 260.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'center_y': 100.0+10, 'center_x': 240.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 100.0+10, 'center_x': 260.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'center_y': 100.0+10, 'center_x': 280.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLACK|C_FILL, 'center_y': 100.0+10, 'center_x': 300.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BROWN|C_FILL, 'center_y': 120.0+10, 'center_x': 260.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 120.0+10, 'center_x': 280.0+10, 'tool': 'FILL_CIRCLE'} | def init_item_list(self): |
[{'width': 240.0-220.0, 'line_width': 1.0, 'height': 480.0-400.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 400.0, 'x': 220.0, 'tool': 'FILL_RECT'}, {'width': 320.0-300.0, 'line_width': 1.0, 'height': 480.0-400.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 400.0, 'x': 300.0, 'tool': 'FILL_RECT'}, {'width': 220.0-160.0, 'line_width': 1.0, 'height': 200.0-180.0,'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 180.0, 'x': 160.0, 'tool': 'FILL_RECT'}, {'width': 380.0-320.0, 'line_width': 1.0, 'height': 200.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 180.0, 'x': 320.0, 'tool': 'FILL_RECT'}, {'width': 380.0-360.0, 'line_width': 1.0, 'height': 180.0-120.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 120.0, 'x': 360.0, 'tool': 'FILL_RECT'}, {'width': 180.0-160.0, 'line_width': 1.0, 'height': 260.0-200.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'y': 200.0, 'x': 160.0, 'tool': 'FILL_RECT'}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 50, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 60.0+50, 'center_x': 220.0+50, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00a0L, 'center_y': 100.0+10, 'center_x': 240.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00a0L, 'center_y': 100.0+10, 'center_x': 280.0+10, 'tool': 'FILL_CIRCLE'}, {'line_width': 8.0, 'points': (260.0, 140.0, 280.0, 140.0), 'tool': 'LINE', 'stroke_color_rgba': 0xFF0000A0L}, {'width': 300.0-240.0, 'line_width': 1.0, 'height': 180.0-160.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 160.0, 'x': 240.0, 'tool': 'FILL_RECT'}, {'width': 320.0-220.0, 'line_width': 1.0, 'height': 320.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 180.0, 'x': 220.0, 'tool': 'FILL_RECT'}, {'width': 340.0-200.0, 'line_width': 1.0, 'height': 400.0-320.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 320.0, 'x': 200.0, 'tool': 'FILL_RECT'}] | [{'width': 240.0-220.0, 'line_width': 1.0, 'height': 480.0-400.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 400.0, 'x': 220.0, 'tool': 'FILL_RECT'}, {'width': 320.0-300.0, 'line_width': 1.0, 'height': 480.0-400.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 400.0, 'x': 300.0, 'tool': 'FILL_RECT'}, {'width': 220.0-160.0, 'line_width': 1.0, 'height': 200.0-180.0,'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 180.0, 'x': 160.0, 'tool': 'FILL_RECT'}, {'width': 380.0-320.0, 'line_width': 1.0, 'height': 200.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 180.0, 'x': 320.0, 'tool': 'FILL_RECT'}, {'width': 380.0-360.0, 'line_width': 1.0, 'height': 180.0-120.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 120.0, 'x': 360.0, 'tool': 'FILL_RECT'}, {'width': 180.0-160.0, 'line_width': 1.0, 'height': 260.0-200.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'y': 200.0, 'x': 160.0, 'tool': 'FILL_RECT'}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 50, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 60.0+50, 'center_x': 220.0+50, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 100.0+10, 'center_x': 240.0+10, 'tool': 'FILL_CIRCLE'}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 100.0+10, 'center_x': 280.0+10, 'tool': 'FILL_CIRCLE'}, {'line_width': 8.0, 'points': (260.0, 140.0, 280.0, 140.0), 'tool': 'LINE', 'stroke_color_rgba': C_RED|C_STROKE}, {'width': 300.0-240.0, 'line_width': 1.0, 'height': 180.0-160.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 160.0, 'x': 240.0, 'tool': 'FILL_RECT'}, {'width': 320.0-220.0, 'line_width': 1.0, 'height': 320.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 180.0, 'x': 220.0, 'tool': 'FILL_RECT'}, {'width': 340.0-200.0, 'line_width': 1.0, 'height': 400.0-320.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 320.0, 'x': 200.0, 'tool': 'FILL_RECT'}] | def init_item_list(self): |
[{'radius_x': 40, 'radius_y': 40, 'stroke_color_rgba': 4287383039L, 'line_width': 5.0, 'center_y': 260.0+40, 'tool': 'CIRCLE', 'center_x': 160.0+40}, {'radius_x': 40, 'radius_y': 40, 'stroke_color_rgba': 4287383039L, 'line_width': 5.0, 'center_y': 260.0+40, 'tool': 'CIRCLE', 'center_x': 320.0+40}, {'tool': 'LINE', 'points': (200.0, 300.0, 280.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'tool': 'LINE', 'points': (280.0,300.0, 340.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'tool': 'LINE', 'points': (240.0, 240.0, 340.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'tool': 'LINE', 'points': (200.0, 300.0, 240.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'tool': 'LINE', 'points': (240.0, 220.0, 240.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 2199425535L}, {'tool': 'LINE', 'points': (220.0, 220.0, 260.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': 2199425535L}, {'tool': 'LINE', 'points': (340.0, 200.0, 340.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 2199425535L}, {'tool': 'LINE', 'points': (320.0, 200.0, 340.0, 200.0), 'line_width': 8.0, 'stroke_color_rgba': 2199425535L}, {'tool': 'LINE', 'points': (340.0, 240.0, 360.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}] | [{'radius_x': 40, 'radius_y': 40, 'stroke_color_rgba': C_YELLOW|C_STROKE, 'line_width': 5.0, 'center_y': 260.0+40, 'tool': 'CIRCLE', 'center_x': 160.0+40}, {'radius_x': 40, 'radius_y': 40, 'stroke_color_rgba': C_YELLOW|C_STROKE, 'line_width': 5.0, 'center_y': 260.0+40, 'tool': 'CIRCLE', 'center_x': 320.0+40}, {'tool': 'LINE', 'points': (200.0, 300.0, 280.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'tool': 'LINE', 'points': (280.0,300.0, 340.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'tool': 'LINE', 'points': (240.0, 240.0, 340.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'tool': 'LINE', 'points': (200.0, 300.0, 240.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'tool': 'LINE', 'points': (240.0, 220.0, 240.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_MAGENTA|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 220.0, 260.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': C_MAGENTA|C_STROKE}, {'tool': 'LINE', 'points': (340.0, 200.0, 340.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_MAGENTA|C_STROKE}, {'tool': 'LINE', 'points': (320.0, 200.0, 340.0, 200.0), 'line_width': 8.0, 'stroke_color_rgba': C_MAGENTA|C_STROKE}, {'tool': 'LINE', 'points': (340.0, 240.0, 360.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}] | def init_item_list(self): |
[{'width': 420.0-140.0, 'line_width': 1.0, 'height': 500.0-420.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00a0L, 'y': 420.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 50, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xffff0cA0L, 'center_y': 60.0+50, 'tool': 'FILL_CIRCLE', 'center_x': 160.0+50}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 20, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'center_y': 160.0+20, 'tool': 'FILL_CIRCLE', 'center_x': 260.0+50}, {'radius_x': 30, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'center_y': 200.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 300.0+30}, {'radius_x': 20,'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba':0x1010FFA0L, 'center_y': 140.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 360.0+20}, {'tool': 'LINE','points': (220.0, 400.0, 240.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'tool': 'LINE', 'points': (240.0, 420.0, 280.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'tool': 'LINE', 'points': (280.0, 420.0, 300.0, 400.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'tool': 'LINE', 'points': (220.0, 400.0, 300.0, 400.0), 'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'tool': 'LINE', 'points': (260.0, 280.0, 260.0, 400.0),'line_width': 8.0, 'stroke_color_rgba': 0xFF0000A0L}, {'tool': 'LINE', 'points':(260.0, 280.0, 300.0, 380.0), 'line_width': 8.0, 'stroke_color_rgba': 2199425535L}, {'tool': 'LINE', 'points': (260.0, 380.0, 300.0, 380.0), 'line_width': 8.0,'stroke_color_rgba': 2199425535L}] | [{'width': 420.0-140.0, 'line_width': 1.0, 'height': 500.0-420.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 420.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 50, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_YELLOW|C_FILL, 'center_y': 60.0+50, 'tool': 'FILL_CIRCLE', 'center_x': 160.0+50}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 20, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'center_y': 160.0+20, 'tool': 'FILL_CIRCLE', 'center_x': 260.0+50}, {'radius_x': 30, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'center_y': 200.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 300.0+30}, {'radius_x': 20,'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba':C_BLUE|C_FILL, 'center_y': 140.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 360.0+20}, {'tool': 'LINE','points': (220.0, 400.0, 240.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'tool': 'LINE', 'points': (240.0, 420.0, 280.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'tool': 'LINE', 'points': (280.0, 420.0, 300.0, 400.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 400.0, 300.0, 400.0), 'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'tool': 'LINE', 'points': (260.0, 280.0, 260.0, 400.0),'line_width': 8.0, 'stroke_color_rgba': C_RED|C_STROKE}, {'tool': 'LINE', 'points':(260.0, 280.0, 300.0, 380.0), 'line_width': 8.0, 'stroke_color_rgba': C_MAGENTA|C_STROKE}, {'tool': 'LINE', 'points': (260.0, 380.0, 300.0, 380.0), 'line_width': 8.0,'stroke_color_rgba': C_MAGENTA|C_STROKE}] | def init_item_list(self): |
[{'width': 420.0-380.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'width': 380.0-340.0, 'line_width': 1.0, 'height': 220.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 340.0}, {'width': 380.0-340.0, 'line_width': 1.0, 'height': 300.0-260.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 260.0, 'tool': 'FILL_RECT', 'x': 340.0}] | [{'width': 420.0-380.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'width': 380.0-340.0, 'line_width': 1.0, 'height': 220.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 340.0}, {'width': 380.0-340.0, 'line_width': 1.0, 'height': 300.0-260.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 260.0, 'tool': 'FILL_RECT', 'x': 340.0}] | def init_item_list(self): |
[{'width': 420.0-140.0, 'line_width': 1.0, 'height': 460.0-420.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xC2C2C2A0L, 'y': 420.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'width': 420.0-180.0, 'line_width': 1.0, 'height': 420.0-380.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 380.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 420.0-220.0, 'line_width': 1.0, 'height': 380.0-340.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 340.0, 'tool': 'FILL_RECT', 'x': 220.0}, {'width': 420.0-260.0, 'line_width': 1.0, 'height': 340.0-300.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xffff0cA0L, 'y': 300.0, 'tool': 'FILL_RECT', 'x': 260.0}, {'width': 420.0-300.0, 'line_width': 1.0, 'height': 300.0-260.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 260.0, 'tool': 'FILL_RECT', 'x': 300.0}, {'width': 420.0-340.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x000000A0L, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 340.0}, {'width': 420.0-380.0, 'line_width': 1.0, 'height': 220.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x000000A0L, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 380.0}] | [{'width': 420.0-140.0, 'line_width': 1.0, 'height': 460.0-420.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREY|C_FILL, 'y': 420.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'width': 420.0-180.0, 'line_width': 1.0, 'height': 420.0-380.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 380.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 420.0-220.0, 'line_width': 1.0, 'height': 380.0-340.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 340.0, 'tool': 'FILL_RECT', 'x': 220.0}, {'width': 420.0-260.0, 'line_width': 1.0, 'height': 340.0-300.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_YELLOW|C_FILL, 'y': 300.0, 'tool': 'FILL_RECT', 'x': 260.0}, {'width': 420.0-300.0, 'line_width': 1.0, 'height': 300.0-260.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 260.0, 'tool': 'FILL_RECT', 'x': 300.0}, {'width': 420.0-340.0, 'line_width': 1.0, 'height': 260.0-220.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLACK|C_FILL, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 340.0}, {'width': 420.0-380.0, 'line_width': 1.0, 'height': 220.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLACK|C_FILL, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 380.0}] | def init_item_list(self): |
[{'width': 420.0-380.0, 'line_width': 1.0, 'height': 380.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xffff0cA0L, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'tool': 'LINE', 'points': (360.0, 80.0, 400.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': 707406591L}, {'radius_x': 100, 'line_width': 1.0, 'radius_y': 170, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 100.0+170, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+100}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 100, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'center_y': 180.0+100, 'tool': 'FILL_CIRCLE', 'center_x': 260.0+50}] | [{'width': 420.0-380.0, 'line_width': 1.0, 'height': 380.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_YELLOW|C_FILL, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'tool': 'LINE', 'points': (360.0, 80.0, 400.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': C_STROKE}, {'radius_x': 100, 'line_width': 1.0, 'radius_y': 170, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 100.0+170, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+100}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 100, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'center_y': 180.0+100, 'tool': 'FILL_CIRCLE', 'center_x': 260.0+50}] | def init_item_list(self): |
[{'width': 420.0-340.0, 'line_width': 1.0, 'height': 360.0-160.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 340.0}, {'width': 380.0-340.0, 'line_width': 1.0, 'height': 500.0-360.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 360.0, 'tool': 'FILL_RECT', 'x': 340.0}, {'width': 340.0-260.0, 'line_width': 1.0, 'height': 200.0-160.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 260.0}, {'width': 300.0-260.0, 'line_width': 1.0, 'height': 280.0-200.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 260.0}, {'width': 420.0-380.0, 'line_width': 1.0, 'height': 160.0-140.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 140.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'width': 420.0-360.0, 'line_width': 1.0, 'height': 140.0-60.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00a0L, 'y': 60.0, 'tool': 'FILL_RECT', 'x': 360.0}, {'width': 420.0-400.0, 'line_width': 1.0, 'height': 120.0-100.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xb9bc0dffL, 'y': 100.0, 'tool': 'FILL_RECT', 'x': 400.0}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 80.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 380.0+10}] | [{'width': 420.0-340.0, 'line_width': 1.0, 'height': 360.0-160.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 340.0}, {'width': 380.0-340.0, 'line_width': 1.0, 'height': 500.0-360.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 360.0, 'tool': 'FILL_RECT', 'x': 340.0}, {'width': 340.0-260.0, 'line_width': 1.0, 'height': 200.0-160.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 260.0}, {'width': 300.0-260.0, 'line_width': 1.0, 'height': 280.0-200.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 260.0}, {'width': 420.0-380.0, 'line_width': 1.0, 'height': 160.0-140.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 140.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'width': 420.0-360.0, 'line_width': 1.0, 'height': 140.0-60.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 60.0, 'tool': 'FILL_RECT', 'x': 360.0}, {'width': 420.0-400.0, 'line_width': 1.0, 'height': 120.0-100.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BROWN|C_FILL, 'y': 100.0, 'tool': 'FILL_RECT', 'x': 400.0}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 80.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 380.0+10}] | def init_item_list(self): |
[{'width': 420.0-300.0, 'line_width': 1.0, 'height': 260.0-240.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 240.0, 'tool': 'FILL_RECT', 'x': 300.0}, {'tool': 'LINE', 'points': (180.0, 240.0, 300.0, 140.0), 'line_width': 8.0, 'stroke_color_rgba': 4287383039L}, {'tool': 'LINE', 'points': (180.0, 240.0, 180.0, 260.0), 'line_width': 8.0, 'stroke_color_rgba': 4287383039L}, {'tool': 'LINE', 'points': (180.0, 260.0, 300.0, 360.0), 'line_width': 8.0, 'stroke_color_rgba': 4287383039L}, {'tool': 'LINE', 'points': (300.0, 140.0, 300.0, 360.0), 'line_width': 8.0, 'stroke_color_rgba': 4287383039L}] | [{'width': 420.0-300.0, 'line_width': 1.0, 'height': 260.0-240.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 240.0, 'tool': 'FILL_RECT', 'x': 300.0}, {'tool': 'LINE', 'points': (180.0, 240.0, 300.0, 140.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}, {'tool': 'LINE', 'points': (180.0, 240.0, 180.0, 260.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}, {'tool': 'LINE', 'points': (180.0, 260.0, 300.0, 360.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}, {'tool': 'LINE', 'points': (300.0, 140.0, 300.0, 360.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}] | def init_item_list(self): |
[{'width': 420.0-200.0, 'line_width': 1.0, 'height': 460.0-440.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 440.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 220.0-200.0, 'line_width': 1.0, 'height': 440.0-280.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 280.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 420.0-200.0, 'line_width': 1.0, 'height': 280.0-260.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x1010FFA0L, 'y': 260.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 420.0-380.0, 'line_width': 1.0, 'height': 440.0-360.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 360.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'width': 360.0-240.0, 'line_width': 1.0, 'height': 400.0-300.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xffff0cA0L, 'y': 300.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'tool': 'LINE', 'points': (200.0, 260.0, 420.0, 100.0), 'line_width': 8.0, 'stroke_color_rgba': 4294905087L}] | [{'width': 420.0-200.0, 'line_width': 1.0, 'height': 460.0-440.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 440.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 220.0-200.0, 'line_width': 1.0, 'height': 440.0-280.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 280.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 420.0-200.0, 'line_width': 1.0, 'height': 280.0-260.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLUE|C_FILL, 'y': 260.0, 'tool': 'FILL_RECT', 'x': 200.0}, {'width': 420.0-380.0, 'line_width': 1.0, 'height': 440.0-360.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 360.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'width': 360.0-240.0, 'line_width': 1.0, 'height': 400.0-300.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_YELLOW|C_FILL, 'y': 300.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'tool': 'LINE', 'points': (200.0, 260.0, 420.0, 100.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}] | def init_item_list(self): |
[{'width': 420.0-360.0, 'line_width': 1.0, 'height': 380.0-140.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 140.0, 'tool': 'FILL_RECT', 'x': 360.0}, {'width': 360.0-180.0, 'line_width': 1.0, 'height': 280.0-220.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 260.0-240.0, 'line_width': 1.0, 'height': 220.0-200.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x000000A0L, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'tool': 'LINE', 'points': (180.0, 200.0, 320.0, 200.0), 'line_width': 8.0, 'stroke_color_rgba': 4283674623L}, {'width': 420.0-400.0, 'line_width': 1.0, 'height': 420.0-360.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 360.0, 'tool': 'FILL_RECT', 'x': 400.0}, {'width': 420.0-380.0, 'line_width': 1.0, 'height': 180.0-160.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 380.0}] | [{'width': 420.0-360.0, 'line_width': 1.0, 'height': 380.0-140.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 140.0, 'tool': 'FILL_RECT', 'x': 360.0}, {'width': 360.0-180.0, 'line_width': 1.0, 'height': 280.0-220.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 220.0, 'tool': 'FILL_RECT', 'x': 180.0}, {'width': 260.0-240.0, 'line_width': 1.0, 'height': 220.0-200.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_BLACK|C_FILL, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 240.0}, {'tool': 'LINE', 'points': (180.0, 200.0, 320.0, 200.0), 'line_width': 8.0, 'stroke_color_rgba': C_YELLOW|C_STROKE}, {'width': 420.0-400.0, 'line_width': 1.0, 'height': 420.0-360.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 360.0, 'tool': 'FILL_RECT', 'x': 400.0}, {'width': 420.0-380.0, 'line_width': 1.0, 'height': 180.0-160.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 380.0}] | def init_item_list(self): |
[{'tool': 'LINE', 'points': (260.0, 340.0, 420.0, 340.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 260.0, 260.0, 340.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 260.0, 420.0, 260.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (340.0, 260.0, 360.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (360.0, 220.0, 420.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'center_y': 280.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 300.0+10}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'center_y': 280.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 340.0+10}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'center_y': 280.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 380.0+10}] | [{'tool': 'LINE', 'points': (260.0, 340.0, 420.0, 340.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 260.0, 260.0, 340.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 260.0, 420.0, 260.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (340.0, 260.0, 360.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (360.0, 220.0, 420.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'center_y': 280.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 300.0+10}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'center_y': 280.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 340.0+10}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'center_y': 280.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 380.0+10}] | def init_item_list(self): |
[{'tool': 'LINE', 'points': (220.0, 400.0, 340.0, 400.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (340.0, 400.0, 360.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (360.0, 320.0, 360.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (340.0, 300.0, 360.0, 320.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (340.0, 100.0, 340.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (200.0, 420.0, 220.0, 400.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (200.0, 320.0, 200.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (200.0, 320.0, 220.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 100.0, 220.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 100.0, 280.0, 20.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (280.0, 20.0, 340.0, 100.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 100.0, 340.0, 100.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 120.0, 340.0, 120.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 300.0, 340.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (280.0, 300.0, 280.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}] | [{'tool': 'LINE', 'points': (220.0, 400.0, 340.0, 400.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (340.0, 400.0, 360.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (360.0, 320.0, 360.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (340.0, 300.0, 360.0, 320.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (340.0, 100.0, 340.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (200.0, 420.0, 220.0, 400.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (200.0, 320.0, 200.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (200.0, 320.0, 220.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 100.0, 220.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 100.0, 280.0, 20.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (280.0, 20.0, 340.0, 100.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 100.0, 340.0, 100.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 120.0, 340.0, 120.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 300.0, 340.0, 300.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (280.0, 300.0, 280.0, 420.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}] | def init_item_list(self): |
[{'tool': 'LINE', 'points': (280.0, 260.0, 280.0, 440.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (280.0, 260.0, 340.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (340.0, 160.0, 340.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (280.0, 120.0, 340.0, 160.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 160.0, 280.0, 120.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 160.0, 220.0, 200.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 200.0, 260.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}] | [{'tool': 'LINE', 'points': (280.0, 260.0, 280.0, 440.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (280.0, 260.0, 340.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (340.0, 160.0, 340.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (280.0, 120.0, 340.0, 160.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 160.0, 280.0, 120.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 160.0, 220.0, 200.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 200.0, 260.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}] | def init_item_list(self): |
[{'tool': 'LINE', 'points': (160.0, 140.0, 260.0, 100.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (160.0, 140.0, 160.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (160.0, 220.0, 260.0, 380.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (260.0, 380.0, 360.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (360.0, 140.0, 360.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (260.0, 100.0, 360.0, 140.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (220.0, 500.0, 260.0, 380.0), 'line_width': 8.0, 'stroke_color_rgba': 707406591L}, {'width': 240.0-220.0, 'line_width': 1.0, 'height': 180.0-160.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 220.0}, {'width': 300.0-280.0, 'line_width': 1.0, 'height': 220.0-200.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 280.0}, {'width': 240.0-220.0, 'line_width': 1.0, 'height': 260.0-240.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 240.0, 'tool': 'FILL_RECT', 'x': 220.0}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 160.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 280.0+10}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 200.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 220.0+10}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 240.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 280.0+10}] | [{'tool': 'LINE', 'points': (160.0, 140.0, 260.0, 100.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (160.0, 140.0, 160.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (160.0, 220.0, 260.0, 380.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (260.0, 380.0, 360.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (360.0, 140.0, 360.0, 220.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (260.0, 100.0, 360.0, 140.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (220.0, 500.0, 260.0, 380.0), 'line_width': 8.0, 'stroke_color_rgba': C_STROKE}, {'width': 240.0-220.0, 'line_width': 1.0, 'height': 180.0-160.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 160.0, 'tool': 'FILL_RECT', 'x': 220.0}, {'width': 300.0-280.0, 'line_width': 1.0, 'height': 220.0-200.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 200.0, 'tool': 'FILL_RECT', 'x': 280.0}, {'width': 240.0-220.0, 'line_width': 1.0, 'height': 260.0-240.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 240.0, 'tool': 'FILL_RECT', 'x': 220.0}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 160.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 280.0+10}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 200.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 220.0+10}, {'radius_x': 10, 'line_width': 1.0, 'radius_y': 10, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 240.0+10, 'tool': 'FILL_CIRCLE', 'center_x': 280.0+10}] | def init_item_list(self): |
autocrop = True | def start(self): self.gcomprisBoard.level=1 self.gcomprisBoard.maxlevel=9 self.gcomprisBoard.sublevel=1 self.gcomprisBoard.number_of_sublevel=1 gcompris.bar_set(gcompris.BAR_LEVEL) gcompris.bar_location(5, -1, 0.8) |
|
self.gcomprisBoard.canvas.get_root_item()) | self.backitem) | def next_level(self): gcompris.score.end() self.rootitem.remove() self.rootitem = goocanvas.Group(parent = self.gcomprisBoard.canvas.get_root_item()) self.display_level() |
print "<h1>" + self.titleContent + "</h1>" | print "<hr></hr><h1>" + self.titleContent + "</h1>" | def endElement(self, name): |
text = re.sub(r"{{par ext[^}]+}}", "(Par extension)", text) text = re.sub(r"{{litt[^}]+}}", "(Littéraire)", text) text = re.sub(r"{{figuré[^}]+}}", "(Figuré)", text) text = re.sub(r"{{dés|fr[^}]+}}", "(Désuet)", text) text = re.sub(r"{{vx[^}]+}}", "(Vieilli)", text) text = re.sub(r"{{w\|([^}]+)", "<i>\1</i>", text) text = re.sub(r"{{source\|([^}]+)", "- (\1)", text) | text = re.sub(r"{{par ext[^}]+}}", r"(Par extension)", text) text = re.sub(r"{{litt[^}]+}}", r"(Littéraire)", text) text = re.sub(r"{{figuré[^}]+}}", r"(Figuré)", text) text = re.sub(r"{{dés[^}]+}}", r"(Désuet)", text) text = re.sub(r"{{vx[^}]+}}", r"(Vieilli)", text) text = re.sub(r"{{w\|([^}]+)}}", r"<i>\1</i>", text) text = re.sub(r"{{source\|([^}]+)}}", r"- (\1)", text) | def wiki2xml(self, text): |
goocanvas.Group(parent = self.gcomprisBoard.canvas.get_root_item()) | goocanvas.Group(parent = self.backroot) | def display_game(self): # The grid we display # It contains all the graphic items self.items = self.create_empty_list() |
gcompris.BOARD_HEIGHT - 180, | gcompris.BOARD_HEIGHT - 200, | def newGame(self): self.cleanup() |
item.scale(scale, scale) | item.scale(scale + 0.01, scale) | def __init__(self, board, root, x, y, index, board_size, scale): self.board = board |
result = re.search("[* | result = re.search(r"^[ ]*[* | def indents2xml(self, text): result = re.search("[*#:;]+[ ]*", text) if not result: close = "" while self.lilevel: close += self.lilevel.pop() text = close + text return text |
text = re.sub(r"{{[-\)]}}", "", text) | text = re.sub(r"{{[-\)\(]}}", "", text) | def wiki2xml(self, text): |
while text.find("'''") != -1: text = text.replace("'''", "<b>", 1) text = text.replace("'''", "</b>", 1) while text.find("''") != -1: text = text.replace("''", "<i>", 1) text = text.replace("''", "</i>", 1) | text = self.quote2xml("''", "<i>", "</i>", text) | def wiki2xml(self, text): |
if not re.search(r"{{-.*-}}", l): | if not re.search(r"{{-.*-.*}}", l): | def parseText(self): inDefinition = False inAnagram = False inSynonym = False inAntonym = False inPron = False wordType = "" wordSubType = "" |
file = file[1] print "voices/fr/words/" + file.replace("}}", "") | file = file[1].replace("}}", "") print "<a href=http://fr.wiktionary.org/wiki/Fichier:" \ + file + ">" + file + "</a>" | def parseText(self): inDefinition = False inAnagram = False inSynonym = False inAntonym = False inPron = False wordType = "" wordSubType = "" |
print self.equivs | def __init__(self, gcomprisBoard): # Save the gcomprisBoard, it defines everything we need # to know from the core self.gcomprisBoard = gcomprisBoard |
|
l = concat + l | def parseText(self): inWord = wiktio.Word() inDefinition = None inAnagram = False inSynonym = False inAntonym = False inPron = False wordType = "" wordSubType = "" filterIndent = "" gender = "" |
|
print "Tuxpaint not killed", self.pid | print "Tuxpaint not killed", pid | def end(self): gcompris.sound.reopen() global pid # force kill - data loss if pid != None: print "Tuxpaint not killed", self.pid #import os #os.kill(self.pid, signal.SIGKILL) if self.rootitem != None: self.rootitem.remove() self.rootitem = None |
if (gcompris.get_properties().fullscreen and not gcompris.get_properties().noxf86vm): gtk.gdk.pointer_grab(data.window.window, True, 0, data.window.window) if (gtk.gtk_version <= (2,6,10)): data.window.unfullscreen() data.window.fullscreen() | def child_callback(fd, cond, data): # restore pointergrab if running fullscreen if (gcompris.get_properties().fullscreen and not gcompris.get_properties().noxf86vm): gtk.gdk.pointer_grab(data.window.window, True, 0, data.window.window) #bug in gtk2.6/window if (gtk.gtk_version <= (2,6,10)): data.window.unfullscreen() data.window.fullscreen() global pid pid = None global fles fles.end() gcompris.end_board() |
|
req_string = "show line1:%s line2:%s duration:%i " req_string += "brightness:%i font:%s centered:%i" | req_string = "show line1:%s line2:%s duration:%s " req_string += "brightness:%s font:%s centered:%i" | def show(self, line1="", line2="", duration=3, brightness=4, font="standard", centered=False): """Displays text on Player display""" if font == "huge": line1 = "" line1, line2 = urllib.quote(line1), urllib.quote(line2) req_string = "show line1:%s line2:%s duration:%i " req_string += "brightness:%i font:%s centered:%i" self.request(req_string % (line1, line2, duration, brightness, font, int(centered))) |
(line1, line2, duration, brightness, font, int(centered))) | (line1, line2, str(duration), str(brightness), font, int(centered))) def display(self, line1="", line2="", duration=3): line1, line2 = urllib.quote(line1), urllib.quote(line2) req_string = "display line1:%s line2:%s duration:%s " self.request(req_string % (line1, line2, str(duration)) | def show(self, line1="", line2="", duration=3, brightness=4, font="standard", centered=False): """Displays text on Player display""" if font == "huge": line1 = "" line1, line2 = urllib.quote(line1), urllib.quote(line2) req_string = "show line1:%s line2:%s duration:%i " req_string += "brightness:%i font:%s centered:%i" self.request(req_string % (line1, line2, duration, brightness, font, int(centered))) |
req_string = "display line1:%s line2:%s duration:%s " | req_string = "display %s %s %s" | def display(self, line1="", line2="", duration=3): line1, line2 = urllib.quote(line1), urllib.quote(line2) req_string = "display line1:%s line2:%s duration:%s " self.request(req_string % (line1, line2, str(duration))) |
p = subprocess.Popen(cmd, env=local_env, stdout=subprocess.PIPE) | def run_test_prog(bits, pagesize, cmd, **env): if paranoid_pool_check: beforepool = snapshot_pool_state() print "Pool state: %s" % str(beforepool) local_env = os.environ.copy() local_env.update(env) local_env["PATH"] = "./obj%d:../obj%d:%s" \ % (bits, bits, local_env.get("PATH", "")) local_env["LD_LIBRARY_PATH"] = "../obj%d:obj%d:%s" \ % (bits, bits, local_env.get("LD_LIBRARY_PATH", "")) local_env["HUGETLB_DEFAULT_PAGE_SIZE"] = repr(pagesize) p = subprocess.Popen(cmd, env=local_env, stdout=subprocess.PIPE) try: rc = p.wait() except KeyboardInterrupt: # Abort and mark this a strange test result return (None, "") out = p.stdout.read().strip() if paranoid_pool_check: afterpool = snapshot_pool_state() if afterpool != beforepool: print >>sys.stderr, "Hugepage pool state not preserved!" print >>sys.stderr, "BEFORE: %s" % str(beforepool) print >>sys.stderr, "AFTER: %s" % str(afterpool) sys.exit(98) return (rc, out) |
|
if len(wordsizes) == 0: wordsizes = set([32, 64]) | if len(wordsizes) == 0: wordsizes = get_wordsizes() | def main(): global wordsizes, pagesizes, dangerous, paranoid_pool_check, system_default_hpage_size testsets = set() env_override = {"QUIET_TEST": "1", "HUGETLBFS_MOUNTS": "", "HUGETLB_ELFMAP": None, "HUGETLB_MORECORE": None} env_defaults = {"HUGETLB_VERBOSE": "0"} dangerous = 0 paranoid_pool_check = False try: opts, args = getopt.getopt(sys.argv[1:], "vVfdt:b:p:c") except getopt.GetoptError, err: print str(err) sys.exit(1) for opt, arg in opts: if opt == "-v": env_override["QUIET_TEST"] = None env_defaults["HUGETLB_VERBOSE"] = "2" elif opt == "-V": env_defaults["HUGETLB_VERBOSE"] = "99" elif opt == "-f": dangerous = 1 elif opt == "-t": for t in arg.split(): testsets.add(t) elif opt == "-b": for b in arg.split(): wordsizes.add(int(b)) elif opt == "-p": for p in arg.split(): pagesizes.add(int(p)) elif opt == '-c': paranoid_pool_check = True else: assert False, "unhandled option" if len(testsets) == 0: testsets = set(["func", "stress"]) if len(wordsizes) == 0: wordsizes = set([32, 64]) if len(pagesizes) == 0: pagesizes = get_pagesizes() if len(pagesizes) == 0: print "Unable to find available page sizes, are you sure hugetlbfs" print "is mounted and there are available huge pages?" return 1 setup_env(env_override, env_defaults) init_results() (rc, system_default_hpage_size) = hpage_size() if rc != 0: print "Unable to find system default hugepage size." print "Is hugepage supported included in this kernel?" return 1 check_hugetlbfs_path() if "func" in testsets: functional_tests() if "stress" in testsets: stress_tests() results_summary() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.