Hai all…
I want to implement the following program in wx.StaticText on wxpython.
timer.py (1.04 KB)
···
from datetime import timedelta
from time import sleep
hours, minutes, seconds = 0, 2, 10
total = timedelta(hours=hours, minutes=minutes, seconds=seconds)
for passed_seconds in range(int(total.total_seconds())):
print 'Time Remaining ', total - timedelta(seconds=passed_seconds)
sleep(1)
I tried my best to implement it. My program is attached. But, often it exits with the following error.
**
Pango:ERROR:/build/buildd/pango1.0-1.28.4/./pango/pango-layout.c:3743:pango_layout_check_lines: assertion failed: (!layout->log_attrs)
Aborted
Any idea ?