Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/demo/DVC_DataViewModel.py
- +++ b/demo/DVC_DataViewModel.py
- @@ -339,6 +339,20 @@ def runTest(frame, nb, log):
- # Finally create the test window
- win = TestPanel(nb, log, data=data)
- + import time
- + import threading
- + def hoge():
- + while win.model:
- + time.sleep(5)
- + song = random.choice(data[0].songs)
- + d = random.choice(range(27))+1
- + m = random.choice(range(12))
- + y = random.choice(range(1980, 2005))
- + song.date = wx.DateTime().FromDMY(d,m,y)
- + win.model.ValueChanged(win.model.ObjectToItem(song), 4)
- + print(song.genre, song.title)
- + threading.Thread(target=hoge, daemon=True).start()
- +
- return win
- #----------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment