User Profile
Collapse
-
The error is self-explanatory. No variable named event has been declared in the scope of that statement. Don't know what you expect from this way too small snippet of code. -
-
For those of us without chrystal balls, what is the error. Post the complete traceback. I find it easy to get examples from the web as bg and fg are standard config options like all widgets,...Leave a comment:
-
Store the results in a list of lists or dictionary, and average from the start and end time of your choice....Leave a comment:
-
Set a boolean when the specific text is found, and then if the_boolen, remove certain strings.Leave a comment:
-
We can't help without proper indentation and a complete error message. I don't know what if statement theCode:else: break
Leave a comment:
-
dwblas replied to Having problem using tkinter to collect data and send to AddEmployeeManually classin PythonFirst, you must format you code in code tages so it can be read. Edit your post and format the code to get any help. Second do you have a specific problem? "Having problem using tkinter" is too vague to respond to. I did happen to noticeCode:self.name = ttk.Entry(window).grid(row=0, column=1)
Leave a comment:
-
Code:#How can I use first 2 digits here i.e ??43 or ??49# number = 1243 print(divmod(number, 100))
Leave a comment:
-
Self explanatory. You can subtract two ints or two datetime objects but not one of each. Use type(variable_n ame) to see which is which....Leave a comment:
-
You have posted nothing that we can help with. Post the code that you have so far....Leave a comment:
-
It is simple to find lines that start with "server". What problems are you having with your code to do this?Leave a comment:
-
There is no Python being used in the above post. Please move to a math forum, or where ever is most appropriate.Leave a comment:
-
What is the difference between your two blocks of code?
Code:load = Image.open("hqdefault.jpg") render = ImageTk.PhotoImage(load) img = Label(window, image=render,width=10,height=10)
Code:this= open(str(len(i[1])),'wb') ## and note that "this" no longer exists because you closed the file imgd=ImageTk.PhotoImage(this) panel=tk.Label(image=imgd,height=28,width=30)
Leave a comment:
-
Python creates "executable " code from a file, when you run it for the first timeLeave a comment:
-
There is an old saying, "you have to solve a problem. You decide to use regular expressions. Now you have two problems." So unless you are required to use regular expressions, it is easier and more straight forward to use if statementsCode:## atleast 2 char string test_string="aaa9#" if len(test_string > 1): ## wherein 1 char should be between a-k ## I assume this means the first character
Leave a comment:
-
For the code posted above, the variable, a, is local to/only exists in func1. You have to return it for it to exist outside the function. Every tutorial covers this. Tutorials are write once, read many, so we don't have to answer the same questions over and over and over. Start with this part of a the tutorials point tutorial http://www.tutorialspoint.com/python..._functions.htmLeave a comment:
-
I have no idea what follum is so can not help you because your question is way too vague.Leave a comment:
-
-
Open a file and write self.balance to the file https://www.tutorialspoint.com/python/file_write.htmLeave a comment:
-
We have to be able to locate the line the error is on among other things. Post the complete error message with trackback. No one is going to open an unknown file on a public website....Leave a comment:
No activity results to display
Show More
Leave a comment: