Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Image does not show in treeview.
Post: RE: Image does not show in treeview.

While the following code is inside the function it will at least provide an image for the last item on the list. If the code is outside the function it provides the same image for all items in the tr...
KevinBrown GUI 3 7,473 May-05-2019, 11:47 PM
    Thread: Image does not show in treeview.
Post: RE: Image does not show in treeview.

Context: I'm searching for matching records from an SQLite database. the tuple tupbomi contains the fetchall results from that database. Where the record tupbomd[2]== 'D': this is a node with fu...
KevinBrown GUI 3 7,473 May-05-2019, 09:53 PM
    Thread: Image does not show in treeview.
Post: Image does not show in treeview.

I'm trying to put images into treeviews. Why does the image file Part.png not show up in this treeview. I've loaded the same image ( Part.png) to show in the window and that works OK. are there som...
KevinBrown GUI 3 7,473 May-05-2019, 08:22 PM
    Thread: Toplevel window and global widgets?
Post: RE: Toplevel window and global widgets?

Thank you Yoriz for the very prompt reply. I'll need some time to read over this and understand *args, **kwargs with classes etc. Without fear of getting this completely wrong, is it correct to say ...
KevinBrown GUI 3 5,127 Apr-25-2019, 11:42 AM
    Thread: Toplevel window and global widgets?
Post: Toplevel window and global widgets?

I am using a Toplevel window for users to enter a record number (entrcrd) which is to be opened from an SQLite database. At the initiation of the button btnopen and its command procedure I want the T...
KevinBrown GUI 3 5,127 Apr-24-2019, 02:15 PM
    Thread: Code snippets for building multi column Listviews and or Treeview
Post: RE: Code snippets for building multi column Listvi...

I am using the following. from tkinter import * import tkinter as tk #import tkFont from datetime import * import time from tkinter import ttk import sqlite3 import webbrowser from PIL import Image,...
KevinBrown General Coding Help 3 3,276 Apr-14-2019, 06:05 PM
    Thread: Code snippets for building multi column Listviews and or Treeview
Post: Code snippets for building multi column Listviews ...

I have been working with another programming language for many years and I was very well used to Listview 'widgets' that had multiple column abilities as standard. I don't yet know how to overcome thi...
KevinBrown General Coding Help 3 3,276 Apr-14-2019, 03:23 PM
    Thread: Reading data into a Combobox from a .CSV file
Post: RE: Reading data into a Combobox from a .CSV file

Ref the above for the record I was using .csv files that were in the format. "Car" "Bus" "Train" "Boat" "Motor cycle" In the case of any entry with white space e.g "Motor cycle", this would appear ...
KevinBrown General Coding Help 7 8,413 Apr-14-2019, 11:30 AM
    Thread: Beginner want to learn python
Post: RE: Beginner want to learn python

I would recommend the following to get you started https://www.waterstones.com/book/python-...1840788129
KevinBrown General Coding Help 5 3,225 Apr-10-2019, 09:36 AM
    Thread: Reading data into a Combobox from a .CSV file
Post: RE: Reading data into a Combobox from a .CSV file

I want all comboboxes to have a blank line as the first item I have tried several ways to get spamreader to recognize a blank line (" ") with no success. I have reverted to using a list to allow ...
KevinBrown General Coding Help 7 8,413 Apr-04-2019, 01:47 PM
    Thread: Better Understanding of Security and injection attacks SQLite
Post: Better Understanding of Security and injection att...

From Sebastian Raschka's excellent document A thorough guide to SQLite database operations in Python. I would like to better understand the risk from injection attacks and have laid out several quest...
KevinBrown General Coding Help 1 2,086 Apr-04-2019, 11:25 AM
    Thread: Reading data into a Combobox from a .CSV file
Post: RE: Reading data into a Combobox from a .CSV file

After a bit more searching a head scratching, I've tidied up METHOD #2 in the main adding the csvfile.closed line. This now just uses a tuple to load in the data from the .csv file into the combobox....
KevinBrown General Coding Help 7 8,413 Apr-02-2019, 08:40 PM
    Thread: Reading data into a Combobox from a .CSV file
Post: RE: Reading data into a Combobox from a .CSV file

Thank you Larx60+ for relocating this where I should have put it. I have delved into this further to see if I can get a solution.. Method 2: Prints out the first item from the .csv file and does ...
KevinBrown General Coding Help 7 8,413 Apr-01-2019, 05:04 PM
    Thread: Reading data into a Combobox from a .CSV file
Post: RE: Reading data into a Combobox from a .CSV file

Apologies This is not GUI related, I should have posted this in General coding, can it be moved there ?
KevinBrown General Coding Help 7 8,413 Apr-01-2019, 03:23 PM
    Thread: Reading data into a Combobox from a .CSV file
Post: Reading data into a Combobox from a .CSV file

I believe that the method to achieve this will be straight forward but I cannot find how to read data from a .csv file into a combobox. How do I replace the hard coded values with the data contained ...
KevinBrown General Coding Help 7 8,413 Apr-01-2019, 12:20 PM
    Thread: Updating records 1 to n on an SQLite table
Post: RE: Updating records 1 to n on an SQLite table

(Mar-30-2019, 03:17 PM)ichabod801 Wrote: Is there some reason you are using SQL for this? At the end of a work session users need to retain many long lists of vendors, parts, clients purchase order ...
KevinBrown General Coding Help 2 2,609 Mar-30-2019, 05:02 PM
    Thread: Updating records 1 to n on an SQLite table
Post: Updating records 1 to n on an SQLite table

The attached script is to update an SQLite table (clipboard) with a new item in the following manner. There a maximum number of rows of 50. Records 49 to 2 are saved to 'shuffled' down one row. The ...
KevinBrown General Coding Help 2 2,609 Mar-30-2019, 02:58 PM
    Thread: Inserting new row into SQLite
Post: RE: Inserting new row into SQLite

By trial and error this approach works. Taking this string from Entbuy1.get() and adding ' as the leading and trailing characters. If this is clumsy or coarse solution then please advise or show me ...
KevinBrown General Coding Help 5 3,878 Mar-28-2019, 10:19 AM
    Thread: Inserting new row into SQLite
Post: RE: Inserting new row into SQLite

Correction in the previous reply CD should in fact have been CX, apologies.
KevinBrown General Coding Help 5 3,878 Mar-28-2019, 09:07 AM
    Thread: Inserting new row into SQLite
Post: RE: Inserting new row into SQLite

Nilamo CD take its data from an entry widget Entbuy1 in this case it’s a company name API Basco INC There are no reserved characters in the string
KevinBrown General Coding Help 5 3,878 Mar-28-2019, 03:09 AM

User Panel Messages

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