Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Help with calling the function as the code keep firing
Post: RE: Help with calling the function as the code kee...

It look like to me you don't understand what I am trying to do. I am fetching the url from the database to play the video. If the video link is dead, I want to fetch the new video link in the database...
chris0147 General Coding Help 8 3,929 May-03-2018, 09:58 PM
    Thread: Help with calling the function as the code keep firing
Post: RE: Help with calling the function as the code kee...

(May-03-2018, 06:36 PM)ThiefOfTime Wrote: Ok I see what you mean. You are currently using recursion but if your videos can't play you keep on trying and will not find an end. When you know that you ...
chris0147 General Coding Help 8 3,929 May-03-2018, 06:42 PM
    Thread: Help with calling the function as the code keep firing
Post: RE: Help with calling the function as the code kee...

(May-03-2018, 06:14 PM)ThiefOfTime Wrote: Where does you code fail? Do you have an Exception and could post it? On the first glance your code looks fine. The code fail through this: if not self.pl...
chris0147 General Coding Help 8 3,929 May-03-2018, 06:25 PM
    Thread: Help with calling the function as the code keep firing
Post: RE: Help with calling the function as the code kee...

does anyone know?????????????
chris0147 General Coding Help 8 3,929 May-03-2018, 05:56 PM
    Thread: Help with calling the function as the code keep firing
Post: Help with calling the function as the code keep fi...

Hi all, I need your help. I am working on play function to fetch the video links in the database so I can play the video. I have got a bit of trouble with looping the code, because when I find the vi...
chris0147 General Coding Help 8 3,929 May-03-2018, 12:38 AM
    Thread: TypeError: unsupported operand type(s) for *: 'datetime.timedelta' and 'float'
Post: TypeError: unsupported operand type(s) for *: 'dat...

Hi all, I am working on datetime.datetime objects to calculating between 19:00 and 22:15. I want to calculating the datetime objects and then multiply by the value 11.4. When I try this: program_ti...
chris0147 General Coding Help 2 37,605 May-01-2018, 07:08 PM
    Thread: AttributeError: 'MyPlayer' object has no attribute
Post: AttributeError: 'MyPlayer' object has no attribute

Hi all, I need some help with my current code as I have got a trouble with calling a function from another python file. When I try this: def UpdateEPG(self): self.get_programme_button_width()I...
chris0147 General Coding Help 1 2,955 Apr-14-2018, 12:09 AM
    Thread: Count the rows to 10 and store in the list
Post: Count the rows to 10 and store in the list

Hi all, I need your help with my current project. I am working on get_programme_info function to find the program info by search through in the database with program ids. I have got a problem with f...
chris0147 General Coding Help 0 2,273 Apr-08-2018, 06:52 PM
    Thread: calculating the datetime objects to get the minutes
Post: calculating the datetime objects to get the minute...

Hi all, I am working on the datetime objects to calculate on between the start and stop time. I want to get the return output to something like this: For 55 minutes 55So when I try this: self.progr...
chris0147 General Coding Help 1 2,916 Apr-03-2018, 10:37 PM
    Thread: Convert from datetime to time.struct_time object
Post: Convert from datetime to time.struct_time object

Hi all, I need your help with my curent code. I have stored the datetime object into the list after I have pulled the string from the database. Now I would like to convert it to a string. Example: ...
chris0147 General Coding Help 0 4,358 Mar-11-2018, 12:01 AM
    Thread: Reduce the code for if statements
Post: RE: Reduce the code for if statements

(Feb-27-2018, 04:50 PM)Larz60+ Wrote:  how is CurrentRowX defined? how is CurrentWidth defined? why are you using numbers? Is it to determine widget? What graphics package are you using? I expect...
chris0147 General Coding Help 8 4,644 Feb-27-2018, 07:06 PM
    Thread: Reduce the code for if statements
Post: RE: Reduce the code for if statements

any idea????????
chris0147 General Coding Help 8 4,644 Feb-27-2018, 04:26 PM
    Thread: Reduce the code for if statements
Post: RE: Reduce the code for if statements

(Feb-26-2018, 11:19 PM)Larz60+ Wrote: how is CurrentRowX defined? how is CurrentWidth defined? why are you using numbers? Is it to determine widget? What graphics package are you using? I expect the...
chris0147 General Coding Help 8 4,644 Feb-26-2018, 11:45 PM
    Thread: Reduce the code for if statements
Post: Reduce the code for if statements

Hi, I need your help with my current code. I am working on the if statements to check on the CurrentRowX value and the CurrentWidth value to see if I can get pass on one of these statement so I can a...
chris0147 General Coding Help 8 4,644 Feb-26-2018, 10:03 PM
    Thread: Python error: TypeError: expected string or buffer
Post: Python error: TypeError: expected string or buffer

Hi all, I am sorry for making another post 3 times in a week, but I am almost complete my project. I have converted from time.struct_time to datetime object. Now I would like to convert it back to ti...
chris0147 General Coding Help 1 6,674 Feb-22-2018, 11:43 PM
    Thread: add next day date in time.struct_time object
Post: RE: add next day date in time.struct_time object

Thank you very much for this, the problem are now being solved.
chris0147 General Coding Help 2 4,418 Feb-22-2018, 11:34 PM
    Thread: add next day date in time.struct_time object
Post: add next day date in time.struct_time object

Hi all, I need your help with my code. I want to add the next day date using with time.struct_time object, but I have got no idea how to do this after I have stored the string in the self.epg_time_1 ...
chris0147 General Coding Help 2 4,418 Feb-22-2018, 05:24 PM
    Thread: Convert from time.struct_time to a string
Post: RE: Convert from time.struct_time to a string

Thank you very much for your help ODIS, I can see the problem are now is solved! :)
chris0147 General Coding Help 2 7,734 Feb-22-2018, 04:53 PM
    Thread: Convert from time.struct_time to a string
Post: Convert from time.struct_time to a string

Hi all, I need your help with my code. I want to convert from time.struct_time to a string. Example: time.struct_time(tm_year=2018, tm_mon=2, tm_mday=23, tm_hour=8, tm_min=0, tm_sec=0, tm_wday=4, t...
chris0147 General Coding Help 2 7,734 Feb-22-2018, 02:18 AM
    Thread: Problem with updata the data into the database as it went into the wrong rows
Post: RE: Problem with updata the data into the database...

(Nov-11-2017, 02:22 AM)Larz60+ Wrote: the following statement: for i in range(0,10):does what it's told to do, run code that's part of the loop 11 times with no change of data. I have been using the...
chris0147 General Coding Help 5 3,791 Nov-11-2017, 04:38 PM

User Panel Messages

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