Python Forum
[xbmc] How to block the code from executed twice under the loop
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[xbmc] How to block the code from executed twice under the loop
#4
What gui are you using?
Shouldn't you of posted this in the gui part of the forum?
What does
self.program_id
contain?

Why do you call
self.getControl(int(program_id))
so many times when you could save the control in a variable and just call the methods on it?
ctrl = self.getControl(int(program_id))
Have you tried putting print statements in to see what's happening with the variables inside the loop also put a print statement before the for loop to see if
GoRight
is actually being called more than once.
Reply


Messages In This Thread
RE: How to block the code from executed twice under the loop - by Yoriz - Oct-24-2016, 11:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] messagebox is not being executed please help erwinsiuda 2 2,359 Apr-02-2020, 01:56 AM
Last Post: Larz60+
  [Tkinter] Window unresponsive when executed. fawazcode 2 3,874 Sep-11-2017, 12:29 AM
Last Post: Larz60+
  [WxPython] Which def is executed? merlem 10 8,011 Feb-10-2017, 11:28 AM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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