Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Scraping Data from Singapore Turf Club
Post: RE: Scraping Data from Singapore Turf Club

Example Code: import xlrd book = xlrd.open_workbook("myfile.xls") print("The number of worksheets is {0}".format(book.nsheets)) print("Worksheet name(s): {0}".format(book.sheet_names())) sh = book.sh...
MrBitPythoner Web Scraping & Web Development 2 2,397 Dec-15-2020, 01:28 PM
    Thread: Scraping Data from Singapore Turf Club
Post: RE: Scraping Data from Singapore Turf Club

When you download data, you download it as xls. Here is a good module for parsing XLS: https://pypi.org/project/xlrd/
MrBitPythoner Web Scraping & Web Development 2 2,397 Dec-15-2020, 01:27 PM
    Thread: ReferenceError: weakly-referenced object no longer exists
Post: RE: ReferenceError: weakly-referenced object no lo...

I moved cur to submit(). Works now. Thanks
MrBitPythoner General Coding Help 17 11,536 Dec-14-2020, 07:17 PM
    Thread: ReferenceError: weakly-referenced object no longer exists
Post: RE: ReferenceError: weakly-referenced object no lo...

The following code is search_book.py, which will be imported into main.py Full Code: from tkinter import * from tkinter import messagebox from tkinter import StringVar import tkinter.ttk import pyau...
MrBitPythoner General Coding Help 17 11,536 Dec-14-2020, 06:35 PM
    Thread: ReferenceError: weakly-referenced object no longer exists
Post: RE: ReferenceError: weakly-referenced object no lo...

also, why is cur garbage collected.
MrBitPythoner General Coding Help 17 11,536 Dec-14-2020, 06:11 PM
    Thread: ReferenceError: weakly-referenced object no longer exists
Post: RE: ReferenceError: weakly-referenced object no lo...

search_entr is a tkinter entry
MrBitPythoner General Coding Help 17 11,536 Dec-14-2020, 06:10 PM
    Thread: ReferenceError: weakly-referenced object no longer exists
Post: RE: ReferenceError: weakly-referenced object no lo...

What is the problem with my code in relation to the RefferenceError
MrBitPythoner General Coding Help 17 11,536 Dec-14-2020, 04:15 PM
    Thread: ReferenceError: weakly-referenced object no longer exists
Post: RE: ReferenceError: weakly-referenced object no lo...

In my function, what is the weakly-referred-to object?
MrBitPythoner General Coding Help 17 11,536 Dec-14-2020, 01:10 PM
    Thread: ReferenceError: weakly-referenced object no longer exists
Post: RE: ReferenceError: weakly-referenced object no lo...

I tried that, it still returned the same error. I cant figure out what i am referring to weakly.
MrBitPythoner General Coding Help 17 11,536 Dec-13-2020, 11:55 PM
    Thread: ReferenceError: weakly-referenced object no longer exists
Post: RE: ReferenceError: weakly-referenced object no lo...

Line 232 is a line in C:\Program Files\Python38\lib\site-packages\mysql\connector\cursor_cext.py from the MySQL library. The full traceback is: Error:Exception in Tkinter callback Traceback (most r...
MrBitPythoner General Coding Help 17 11,536 Dec-13-2020, 09:34 PM
    Thread: ReferenceError: weakly-referenced object no longer exists
Post: RE: ReferenceError: weakly-referenced object no lo...

Please help
MrBitPythoner General Coding Help 17 11,536 Dec-13-2020, 08:07 PM
    Thread: ReferenceError: weakly-referenced object no longer exists
Post: ReferenceError: weakly-referenced object no longer...

Hi there. I have been working on a library managment system. I am using MySQL as DB and Tkinter as GUI. This error: Error:File "C:\Program Files\Python38\lib\site-packages\mysql\connector\cursor_cex...
MrBitPythoner General Coding Help 17 11,536 Dec-13-2020, 07:42 PM
    Thread: How to run parallel command (same command -ping)
Post: RE: How to run parallel command (same command -pin...

https://superuser.com/questions/1586246/...ery-500-ms
MrBitPythoner General Coding Help 3 2,826 Dec-10-2020, 07:38 PM
    Thread: How to run parallel command (same command -ping)
Post: RE: How to run parallel command (same command -pin...

A computer only executes a command one after the other. However, you might be able to speed up the proccess.
MrBitPythoner General Coding Help 3 2,826 Dec-10-2020, 07:37 PM
    Thread: how do i store then call a mp3 from sqlite3 .db file
Post: RE: how do i store then call a mp3 from sqlite3 .d...

https://pypi.org/project/playsound/
MrBitPythoner General Coding Help 3 5,742 Dec-10-2020, 07:27 PM
    Thread: how do i store then call a mp3 from sqlite3 .db file
Post: RE: how do i store then call a mp3 from sqlite3 .d...

You could theorettically call a SELECT statement for the sqlite db and store the mp3 files, assuming they are accesible. Then you would play them with playsound library.
MrBitPythoner General Coding Help 3 5,742 Dec-10-2020, 07:24 PM
    Thread: tkinter designer
Post: RE: tkinter designer

I have always wanted one of these. Nice job.
MrBitPythoner Code sharing 3 3,546 Dec-10-2020, 07:19 PM
    Thread: how to return False in ternary condition
Post: RE: how to return False in ternary condition

You can achieve this with semicolons. You dont ordinarily see ; in python, but you can use them. print("hi");print("hi again")
MrBitPythoner General Coding Help 7 3,057 Dec-08-2020, 10:42 PM
    Thread: Stop import from executing function, but allow the function to execute from tk btn.
Post: RE: Stop import from executing function, but allow...

Thank you so much! It worked
MrBitPythoner GUI 4 2,690 Dec-08-2020, 10:00 PM
    Thread: Stop import from executing function, but allow the function to execute from tk btn.
Post: RE: Stop import from executing function, but allow...

main.py from tkinter import * from search_book import * from delete_book import * from checkout_book import * from add_book import add_book root = Tk() root.geometry("900x900") root.title("Library ...
MrBitPythoner GUI 4 2,690 Dec-08-2020, 09:31 PM

User Panel Messages

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