neater code
This commit is contained in:
parent
b8e2ed8c86
commit
0c51ba642a
1 changed files with 4 additions and 6 deletions
10
buypeeb.py
10
buypeeb.py
|
@ -193,13 +193,11 @@ class BuypeebApp:
|
||||||
|
|
||||||
self.items.set(treeIter, 0, item.name if item.name is not None else "")
|
self.items.set(treeIter, 0, item.name if item.name is not None else "")
|
||||||
if item.ready:
|
if item.ready:
|
||||||
self.items.set(treeIter, 1, item.price_jpy())
|
listing[1], listing[2], listing[3] = item.price_jpy(), item.price_aud(), item.ending_at()
|
||||||
self.items.set(treeIter, 2, item.price_aud())
|
|
||||||
self.items.set(treeIter, 3, item.ending_at())
|
|
||||||
else:
|
else:
|
||||||
self.items.set(treeIter, 1, "...")
|
listing[0] = "Loading..." if item.name == "" else item.name
|
||||||
self.items.set(treeIter, 2, "...")
|
for i in range(1, 4):
|
||||||
self.items.set(treeIter, 3, "...")
|
listing[i] = "..."
|
||||||
|
|
||||||
|
|
||||||
def updateListTimes(self):
|
def updateListTimes(self):
|
||||||
|
|
Loading…
Reference in a new issue