Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread Problem

 
erdem ozdemir
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all o/

I am not much experienced in threads, I have a problem in threads.


Here, I have a label which is like a button. When I call e.go(), I actually start a timer object in my extended label to start an animation in it. Here is the code that starts animation.



My problem here is that, it performs part in belowe before showing me animation. I think when I call sleep of thread in label object, it comes back to codes in panel and continues there. Then it completes animation but I can't see animation because panel of main screen has already changed.
am I right?



I could not find any solution to this so far. Any help will be appreciated in advance.

Sincerely

[ September 28, 2006: Message edited by: erdem ozdemir ]
[ September 28, 2006: Message edited by: erdem ozdemir ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's see the code for "e.go()" before I tell you what's wrong. There are at least two possibilities that I can think of.
 
erdem ozdemir
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

here is go part in extended label.
If i remove that if/else part in MouseClicked function, I can see animation which is actually a flash of colors.

Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic