Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
  Sad Thread: Gtk.Template.Child has no attribute 'set_child'
Post: Gtk.Template.Child has no attribute 'set_child'

Sorry, null post. I'm throwing in the towel. Gtk3 > Gtk4, TreeView > ColumnView... is a nightmare task.
snakes GUI 0 531 Nov-14-2023, 09:52 PM
    Thread: Switching from tkinter to gtk is difficult!
Post: Switching from tkinter to gtk is difficult!

I'm trying to populate a gtkTreeView with data from an sqlite database. I had no problems doing this with ttk.treeview but the same method doesn't seem to work. For my first proper Python program I m...
snakes GUI 1 1,455 Aug-07-2022, 09:27 PM
    Thread: I don't understand pip and environments
Post: RE: I don't understand pip and environments

Thank you for the replies. I managed to uninstall Python 3.10 from the Mac and although pip doesn't work pip3 does. It kind of did before I uninstalled 3.10 but "pip3 list" was empty. Now it's full....
snakes General Coding Help 3 1,230 Jul-31-2022, 08:17 PM
    Thread: I don't understand pip and environments
Post: I don't understand pip and environments

I'm completely confused... partly because I decided to buy a Mac! I play about with Python and Scikit-learn from time to time mostly on a Linux desktop. It was dead easy to install modules... "zypper...
snakes General Coding Help 3 1,230 Jul-31-2022, 09:14 AM
    Thread: Join dataframes... So simple but I can't work it out!
Post: RE: Join dataframes... So simple but I can't work ...

Given it was only 14 rows long I just added the index numbers to the line converting the array to a dataframe... # Convert to dataframe gender_predictions = pd.DataFrame(predictions, columns=['gender'...
snakes General Coding Help 1 1,361 Oct-27-2021, 09:15 AM
    Thread: Join dataframes... So simple but I can't work it out!
Post: Join dataframes... So simple but I can't work it o...

I have a dataframe which contains NaNs. I've copied the rows with NaNs and used a DecisionTreeRegressor to predict the missing data. Now, I want to join the predictions dataframe to the original dataf...
snakes General Coding Help 1 1,361 Oct-26-2021, 09:29 PM
    Thread: Kaggle Titanic - new category placement
Post: Kaggle Titanic - new category placement

I'm pretty new to Python and even newer to machine learning so apologies if the answer to my question is obvious. I've performed the common step of combining SibSp and Parch into a single 'family_siz...
snakes Data Science 0 1,692 Oct-18-2021, 07:53 PM
    Thread: Remove label after x seconds
Post: RE: Remove label after x seconds

Thank you for your responses... it's been good to learn about 'after' but I also agree with the use of a message window. I'm going to go that route. Thanks guys!
snakes GUI 3 4,310 Jun-11-2021, 09:20 PM
    Thread: Remove label after x seconds
Post: Remove label after x seconds

I've got a Label that pops up saying "Saved" after the user presses the "Save" button. Is there any way to make this "Saved" Label disappear after say 8s? Thanks
snakes GUI 3 4,310 Jun-11-2021, 07:10 PM
    Thread: Connect and disconnect to database
Post: RE: Connect and disconnect to database

Oh wow... that certainly makes things easier! It will probably remove a good number of lines from my code too! Thank you
snakes General Coding Help 3 2,257 Jun-06-2021, 06:49 AM
    Thread: Connect and disconnect to database
Post: Connect and disconnect to database

I can't seem to find straight answer in the books I've got or from my DDG searches... When should I connect and disconnect to my database? Is it OK/acceptable to connect at the beginning of a metho...
snakes General Coding Help 3 2,257 Jun-05-2021, 06:37 PM
    Thread: Treeview - SQL - Add child node
Post: Treeview - SQL - Add child node

I've got a bunch of entry boxes that add data to an SQL database which is then pulled and added to a tkinter treeview widget. I can select each row in the treeview, edit it and delete it. Now I want ...
snakes GUI 0 2,445 May-15-2021, 08:48 PM
    Thread: tkinter - update/refresh treeview
Post: RE: tkinter - update/refresh treeview

Thank you for your replies. I ended up having to enter the 'insert' code from populate_tab_tree each time I needed it instead of reusing the method, and setting count to global so I'm not trying to ...
snakes GUI 5 20,890 May-13-2021, 07:10 AM
    Thread: tkinter - update/refresh treeview
Post: tkinter - update/refresh treeview

I've got a treeview widget that is supplied data from an sql database. I've been trying all day to make it so when I add a row to the database that the treeview instantly updates. I can't even begin...
snakes GUI 5 20,890 May-11-2021, 10:33 PM
    Thread: auto-generate code for Entry box location
Post: auto-generate code for Entry box location

I'm following a video on youtube that creates a bunch of entry boxes in tkinter and an associated label. The video has a fixed number of entry boxes whereas my code auto-generates the entry boxes beca...
snakes GUI 1 1,886 May-07-2021, 06:16 AM
    Thread: Create SQLite columns from a list or tuple?
Post: RE: Create SQLite columns from a list or tuple?

This is really helpful, thank you. The code I posted was one iteration of the 500 I've tried! I think I have the sql code correct now but my problem is that entry_value is created using a for loop ...
snakes General Coding Help 6 8,674 May-04-2021, 12:06 PM
    Thread: .get() from generated Entry widgets in tkinter
Post: RE: .get() from generated Entry widgets in tkinter

Wow, a huge "thank you!" I guess the order your code is written is far better than the way I wrote mine but I struggled to follow all of it. I did however manage to pull the parts I needed and add th...
snakes GUI 4 4,224 May-03-2021, 11:26 PM
    Thread: Create SQLite columns from a list or tuple?
Post: RE: Create SQLite columns from a list or tuple?

Thank you! I've discovered sql can be very fussy on things like spacings and commas... I would never have worked out what to do without your help. Thank you. My command ended up as... cur.execute("...
snakes General Coding Help 6 8,674 May-03-2021, 11:11 PM
    Thread: .get() from generated Entry widgets in tkinter
Post: RE: .get() from generated Entry widgets in tkinter

Thank you for replying. It seems difficult for me! but would that mean in my request_details method I would also need to to start building a dictionary... the key being the detail_name that I send f...
snakes GUI 4 4,224 May-02-2021, 10:51 PM
    Thread: Create SQLite columns from a list or tuple?
Post: RE: Create SQLite columns from a list or tuple?

Thank you. I did try this, and with DDG too but there isn't an obvious answer to me.
snakes General Coding Help 6 8,674 May-02-2021, 09:12 PM

User Panel Messages

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