lensmaker = cur.fetchone()
else:
lensmaker = (maker, )
- #cur.execute("select sn, description, notes, id from lens where maker = ?", lensmaker)
cur.execute(sql, lensmaker)
rows = cur. fetchall()
return rows
lensmaker = cur.fetchone()
else:
lensmaker = (maker, )
- #cur.execute("select sn, description, notes, id from lens where description like ? and maker = ? COLLATE NOCASE", ('%'+pattern+'%', ) + lensmaker)
cur.execute(sql, ('%'+pattern+'%', ) + lensmaker)
rows = cur. fetchall()
return rows
self.liststore.append(row)
def emptyString(self, str):
-# if not(str and not str.strip()):
-# return True
-# else:
-# return False
return not (str and str.strip())
def on_ok_btn_clicked(self, button):