Python Forum
pyjama - frame every x seconds?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyjama - frame every x seconds?
#2
I don't know about pyjamas, but since it looks like it's just a python-javascript compatability layer, I'm not sure it would make sense to re-build the dom every x seconds. You could use the Timer class to do background tasks: http://pyjs.org/api/library.pyjamas.Time...class.html

The Asteroids example also uses a Canvas class, which has a draw() method that might get called every frame. But I don't actually see the Canvas class in the docs anywhere.
Reply


Messages In This Thread
RE: pyjama - frame every x seconds? - by nilamo - Jan-18-2019, 04:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with module time and leap seconds Pedroski55 3 1,299 Oct-07-2022, 11:27 PM
Last Post: Pedroski55
  Store variable data and display sum after 60 seconds the_dude 11 3,553 Dec-16-2021, 07:07 PM
Last Post: deanhystad
  How to calculate time difference between each row of dataframe in seconds Mekala 1 2,642 Jul-16-2020, 12:57 PM
Last Post: Larz60+
  Need to add hours min and seconds tester_V 5 3,174 Jun-02-2020, 05:29 PM
Last Post: tester_V
  Can't substract seconds from time Raj_Kumar 1 1,831 Apr-15-2020, 02:47 AM
Last Post: bowlofred
  How to calculate time in seconds rajeshE 1 2,140 Feb-15-2020, 11:07 PM
Last Post: Larz60+
  how to stop and start a script for 30 seconds laspaul 9 7,808 Jan-16-2020, 02:13 PM
Last Post: laspaul
  Convert HH:MM:SS to seconds RavCOder 4 10,053 Nov-26-2019, 03:46 PM
Last Post: DeaD_EyE
  Conversion of Time Duration in seconds in python jdevansh99 0 2,896 Jun-05-2018, 05:12 PM
Last Post: jdevansh99
  starting a process every 10 seconds Skaperen 7 15,323 Dec-31-2017, 03:47 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020