You Are Here:

Community: Developer Discussion Boards

#1 Old Cool Hi! Please help, my Jython script - 2006-02-17, 18:23

Join Date: Feb 2006
Posts: 1
helloworld_im_back
Offline
Registered User
Hi! Please help, my Jython script below is not working. I dont know what to do...

# FlipBookAnim.py
# 2006 February 16

class FlipBookAnim(ActionListener, Runnable):
"A flip-book animation implementation"

__delay = 200

def __init__ (self):
self.__view = ImageViewer()
self.__book = ImageVector()
self.__timer = Timer(FlipBookAnim.__delay, self)

window = JFrame("Flip Book Animator", size=(300, 300), defaultCloseOperation=WindowConstants.EXIT_ON_CLOSE)
window.setLayout(GridLayout(1, 1))
window.add(self.__view)
window.setVisible(1)

image = ImageIcon("images/loading-msg.gif").getImage()
self.__view.viewImage(image)

i = 1
while i <= 10:
image = ImageIcon("images/beans/t%s.gif" %i).getImage()
self.__book.addImage(image)

i = i + 1

self.__view.viewImage(None)

def run(self):
self.__timer.start()

def actionPerformed(self, e):
self.__view.viewImage(self.__book.flip())

if __name__ == "__main__":
runner = FlipBookAnim()
EventQueue.invokeLater(runner)

Thanks.
Last edited by helloworld_im_back : 2006-02-17 at 18:30.
Reply With Quote

#2 Old Re: Hi! Please help, my Jython script - 2006-02-18, 18:59

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Hey !
I didn't know Jython was already ported to PyS60 ! ;-)

Guy , I believe that you are on the wrong board :-(
Perhaps in the future : JAVA JME and PyS60 == JythonS60 ...
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Install a script as a standalone app ! cyke64 Python 5 2006-07-18 03:24
sendRedirect not working nicole_yap Mobile Java General 0 2005-09-16 04:35
WML Script not working bishuthomas General Browsing 1 2005-08-22 07:51
Java Script Bug eagleeye General Browsing 0 2005-05-16 13:28
Working in the emulator, not working on the mobile?? sabb0ur General Browsing 2 2003-08-06 21:27

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ