Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Function to delete data
Post: Function to delete data

I'm trying to create a function to delete the last item of a list of things (when you insert the incorrect information and want to delete to insert it again) but sometimes it doensn't work: I click to...
SmukasPlays General Coding Help 1 1,623 Jan-11-2021, 01:46 PM
    Thread: Run more than one window together with tkinter
Post: Run more than one window together with tkinter

I'm doing a program that has loads of windows that do different functions. But I don't know how to run more than run window together. When I'm running one and try to move for another, appears that "Wi...
SmukasPlays GUI 1 1,874 Aug-24-2020, 03:05 PM
    Thread: Using Reportlab to create a landscape pdf
Post: RE: Using Reportlab to create a landscape pdf

(Aug-07-2020, 05:42 AM)bowlofred Wrote: I don't see anything wrong with your first snippet, except the coordinates seem to be out of bounds. If I change it from 10,800 to 10,500, the text is render...
SmukasPlays General Coding Help 2 5,446 Aug-09-2020, 09:31 PM
    Thread: Using Reportlab to create a landscape pdf
Post: Using Reportlab to create a landscape pdf

I'm trying to create a pdf in landscape format, but I couldn't do it with some of things that I found on the internet. I don't know if they're not useful nowadays or I'm doing wrong. from reportlab.li...
SmukasPlays General Coding Help 2 5,446 Aug-07-2020, 12:30 AM
    Thread: Find data using a period of time in SQLITE3
Post: RE: Find data using a period of time in SQLITE3

(Jul-30-2020, 04:48 AM)ndc85430 Wrote: SQLite doesn't have a date type, so presumably you'll store the date as text and there are useful functions to work with dates (see section 2.2 here). You shou...
SmukasPlays General Coding Help 2 2,184 Jul-30-2020, 02:02 PM
    Thread: Find data using a period of time in SQLITE3
Post: Find data using a period of time in SQLITE3

I'm doing a program to register products using SQlite3 so I need to generate some spreadsheets in Excell with some datas. One of the things that I need is to find the products by it's date of acquisit...
SmukasPlays General Coding Help 2 2,184 Jul-27-2020, 08:46 PM
    Thread: Deleting data in SQlite3
Post: Deleting data in SQlite3

I did a function to delete a row in sqlite3 and it worked. But the database only shows that the data was exclude when I close and run my program again. I want a way to do delete the data without havi...
SmukasPlays General Coding Help 0 1,459 Jul-25-2020, 02:07 PM
    Thread: Deleting a row in SQlite3
Post: RE: Deleting a row in SQlite3

(Jul-22-2020, 05:46 PM)ibreeden Wrote: (Jul-22-2020, 02:31 PM)SmukasPlays Wrote: It works, but the program just update what I've deleted when I close and run it againWhat do you mean? Does the row...
SmukasPlays General Coding Help 3 2,053 Jul-22-2020, 07:19 PM
    Thread: Deleting a row in SQlite3
Post: Deleting a row in SQlite3

I am creating a function to delete a row in SQlite3. It works, but the program just update what I've deleted when I close and run it again. There is anyway that I can do it without closing and opening...
SmukasPlays General Coding Help 3 2,053 Jul-22-2020, 02:31 PM
    Thread: Convert py file to exe
Post: RE: Convert py file to exe

(Jul-18-2020, 12:22 AM)snippsat Wrote: (Jul-17-2020, 08:30 PM)SmukasPlays Wrote: When I execute any of the functions that are in the other files, they open but the CMD also openIt's not so common ...
SmukasPlays General Coding Help 12 4,272 Jul-18-2020, 03:15 AM
    Thread: Convert py file to exe
Post: RE: Convert py file to exe

(Jul-17-2020, 04:07 PM)snippsat Wrote: (Jul-17-2020, 03:43 PM)SmukasPlays Wrote: They are functions to be called on the main file, so yes, the main import them.Then it's no problem as eg Pyinstall...
SmukasPlays General Coding Help 12 4,272 Jul-17-2020, 08:30 PM
    Thread: Convert py file to exe
Post: RE: Convert py file to exe

(Jul-16-2020, 06:28 PM)buran Wrote: how are the 4 files linked to one another? Is there one main file that import the others? They are functions to be called on the main file, so yes, the main impor...
SmukasPlays General Coding Help 12 4,272 Jul-17-2020, 03:43 PM
    Thread: Convert py file to exe
Post: Convert py file to exe

I need help to convert four python files (they are all about the same program) in just one executable file that can be installed in other computers without python. I searched for solutions on the web,...
SmukasPlays General Coding Help 12 4,272 Jul-16-2020, 05:11 PM
    Thread: Problem using a button with tkinter
Post: RE: Problem using a button with tkinter

(Jul-02-2020, 07:58 PM)Yoriz Wrote: Move your conversions to the start of the else statement, so you are checking for valid input before trying to convert. Oh, it was just it. Thank you very much!
SmukasPlays General Coding Help 6 3,303 Jul-02-2020, 08:06 PM
    Thread: Problem using a button with tkinter
Post: RE: Problem using a button with tkinter

(Jul-02-2020, 07:47 PM)Yoriz Wrote: But whatever you are entering cannot be converted into a float Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win3...
SmukasPlays General Coding Help 6 3,303 Jul-02-2020, 07:53 PM
    Thread: Problem using a button with tkinter
Post: RE: Problem using a button with tkinter

(Jul-02-2020, 07:40 PM)Yoriz Wrote: What is it that you are entering into the entry that you are trying to convert to a float? CP and SP are the Cost Price and Sell Price
SmukasPlays General Coding Help 6 3,303 Jul-02-2020, 07:42 PM
    Thread: Problem using a button with tkinter
Post: Problem using a button with tkinter

I'm new on Python and now I'm trying to do a simple product registration system with tkinter and sqlite3, following a tutorial on the internet. But I'm having some problems and I don't know what to do...
SmukasPlays General Coding Help 6 3,303 Jul-02-2020, 07:35 PM

User Panel Messages

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