Famcy/_CONSOLE_FOLDER_/_barrier/page.py
def background_thread_inner(self):
		"""
		This is the inner loop of 
		the background thread. 
		"""
		rtype = [{"red": "", "yellow": "bulb_yellow", "green": ""},
{"red": "", "yellow": "", "green": "bulb_green"}]

		itype = ["/asset/image/barrier_gif_close.gif", "/asset/image/barrier_gif_close.gif", "/asset/image/barrier_gif.gif"]

		def task_a_func(submission_obj, info_list):
			ridx = random.randint(0, 1)
			submission_obj.target.update({"status": rtype[ridx]})
			# return submission_obj.target.render_inner()

		def task_bc_func(submission_obj, info_list):
			ridx = random.randint(0, 2)
			submission_obj.target.update({"img_name": [itype[ridx]]})
			# return submission_obj.target.render_inner()

		self.task_a.associate(task_a_func, info_dict={}, target=self.card_2.layout.content[1][0])
		# self.task_b.associate(task_bc_func, info_dict={}, target=self.card_3.layout.content[0][0])
		# self.task_c.associate(task_bc_func, info_dict={}, target=self.card_4.layout.content[0][0])

		Famcy.FamcyBackgroundQueue.add(self.task_a, Famcy.FamcyPriority.Standard)
		# Famcy.FamcyBackgroundQueue.add(self.task_b, Famcy.FamcyPriority.Standard)
		# Famcy.FamcyBackgroundQueue.add(self.task_c, Famcy.FamcyPriority.Standard)

		This is the inner loop of 
		the background thread. 
		
This is the inner loop of
the background thread.
This is the inner loop of the background thread .
def background_thread_inner(self):
		rtype = [{"red": "", "yellow": "bulb_yellow", "green": ""},
{"red": "", "yellow": "", "green": "bulb_green"}]
		itype = ["/asset/image/barrier_gif_close.gif", "/asset/image/barrier_gif_close.gif", "/asset/image/barrier_gif.gif"]
		def task_a_func(submission_obj, info_list):
			ridx = random.randint(0, 1)
			submission_obj.target.update({"status": rtype[ridx]})
		def task_bc_func(submission_obj, info_list):
			ridx = random.randint(0, 2)
			submission_obj.target.update({"img_name": [itype[ridx]]})
		self.task_a.associate(task_a_func, info_dict={}, target=self.card_2.layout.content[1][0])
		Famcy.FamcyBackgroundQueue.add(self.task_a, Famcy.FamcyPriority.Standard)
def background_thread_inner ( self ) : rtype = [ { "red" : "" , "yellow" : "bulb_yellow" , "green" : "" } , { "red" : "" , "yellow" : "" , "green" : "bulb_green" } ] itype = [ "/asset/image/barrier_gif_close.gif" , "/asset/image/barrier_gif_close.gif" , "/asset/image/barrier_gif.gif" ] def task_a_func ( submission_obj , info_list ) : ridx = random . randint ( 0 , 1 ) submission_obj . target . update ( { "status" : rtype [ ridx ] } ) def task_bc_func ( submission_obj , info_list ) : ridx = random . randint ( 0 , 2 ) submission_obj . target . update ( { "img_name" : [ itype [ ridx ] ] } ) self . task_a . associate ( task_a_func , info_dict = { } , target = self . card_2 . layout . content [ 1 ] [ 0 ] ) Famcy . FamcyBackgroundQueue . add ( self . task_a , Famcy . FamcyPriority . Standard )
This is the inner loop of
the background thread.
This is the inner loop of the background thread .
"""
		This is the inner loop of 
		the background thread. 
		""" # return submission_obj.target.render_inner() # return submission_obj.target.render_inner() # self.task_b.associate(task_bc_func, info_dict={}, target=self.card_3.layout.content[0][0]) # self.task_c.associate(task_bc_func, info_dict={}, target=self.card_4.layout.content[0][0]) # Famcy.FamcyBackgroundQueue.add(self.task_b, Famcy.FamcyPriority.Standard) # Famcy.FamcyBackgroundQueue.add(self.task_c, Famcy.FamcyPriority.Standard)
self