Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: problem with pyinstaller to create an executable file
Post: problem with pyinstaller to create an executable f...

Hi; I just created an application with python version 3.9.4: when I run the python file (index.py), it works fine without any problem. once i have converted this python file with pyinstaller version ...
atlass218 General Coding Help 0 2,586 May-15-2021, 11:01 AM
    Thread: how to pass tablewidget object like argument for function
Post: RE: how to pass tablewidget object like argument f...

a solution of this problem is to do like that : def __init__(self,parent=None) : super(MainApp,self).__init__(parent) QMainWindow.__init__(self) self.setupUi(self) se...
atlass218 GUI 2 2,288 Mar-02-2020, 06:53 AM
    Thread: call a function with parametrs from another class
Post: RE: call a function with parametrs from another cl...

hello; I apologize for this delay, but I changed orientation: instead of creating another class, I proceeded to create a function with arguments to replace the other functions each associated with its...
atlass218 GUI 3 4,832 Feb-29-2020, 11:00 AM
    Thread: how to pass tablewidget object like argument for function
Post: how to pass tablewidget object like argument for f...

hi; I have many object of QTabelwidget (tablewidget1,tablewidgte2,tablewidget3, ...) I created a function for each tablewidget, therefore I have a number of functions equal to the number of tablewidge...
atlass218 GUI 2 2,288 Feb-20-2020, 08:58 PM
    Thread: call a function with parametrs from another class
Post: RE: call a function with parametrs from another cl...

thanks for the code
atlass218 GUI 3 4,832 Feb-20-2020, 08:25 PM
    Thread: call a function with parametrs from another class
Post: call a function with parametrs from another class

hi; instead of creating a function for each tablewidget to initialize it, I would like to create a function in a class then I call this function in another class, making it assign as parameter the nam...
atlass218 GUI 3 4,832 Feb-20-2020, 02:16 PM
    Thread: saving text file by FileDialog option
Post: RE: saving text file by FileDialog option

thanks for your help
atlass218 GUI 14 4,726 Feb-19-2020, 09:22 AM
    Thread: saving text file by FileDialog option
Post: RE: saving text file by FileDialog option

hi; I remove the '\' character and replace it by ' ' at the line 7 of the code. header.append(h+' ')the new appearance of the text file : [Image: https://zupimages.net/up/20/07/as...
atlass218 GUI 14 4,726 Feb-11-2020, 07:24 AM
    Thread: saving text file by FileDialog option
Post: RE: saving text file by FileDialog option

this is not a question that i want the code ready, but i'm new to python, and i'm trying to improve my knowledge on the net. about my code, i just changed it for a more readable appearance of the text...
atlass218 GUI 14 4,726 Feb-10-2020, 08:38 PM
    Thread: saving text file by FileDialog option
Post: RE: saving text file by FileDialog option

thanks for the code , but I don't understand anything
atlass218 GUI 14 4,726 Feb-10-2020, 07:17 PM
    Thread: saving text file by FileDialog option
Post: RE: saving text file by FileDialog option

I modify the code by adding some lines: def create_file_from_tablewidget(self): header = [] for column in range(self.tableWidget.columnCount()): h = self.tableWidget.horizonta...
atlass218 GUI 14 4,726 Feb-10-2020, 04:37 PM
    Thread: saving text file by FileDialog option
Post: RE: saving text file by FileDialog option

but with prettytable librairy I save the text file with correct positioning of the columns with this code : from prettytable import from_db_cursor def create_file_from_database(self): conn = ...
atlass218 GUI 14 4,726 Feb-08-2020, 08:17 PM
    Thread: saving text file by FileDialog option
Post: RE: saving text file by FileDialog option

thank you for information, I modified the line 8 to have text file as output : self, 'Save File', '', 'CSV(*.txt)')but I have a problem relating to the positioning of the columns which are badly alig...
atlass218 GUI 14 4,726 Feb-08-2020, 02:00 PM
    Thread: saving text file by FileDialog option
Post: saving text file by FileDialog option

Hi, this is the code that i was able to realize by following steps seen on one of the forums : def create_file_from_tableWidget(self): path,_ = QFileDialog.getSaveFileName( sel...
atlass218 GUI 14 4,726 Feb-08-2020, 07:48 AM
    Thread: how to transform pyqt4 code to pyqt5 code
Post: RE: how to transform pyqt4 code to pyqt5 code

thanks for the correction of the code; I have another question : how to insert the tablewidget header into the file with this code
atlass218 GUI 4 4,903 Jan-17-2020, 08:50 PM
    Thread: how to transform pyqt4 code to pyqt5 code
Post: how to transform pyqt4 code to pyqt5 code

Hi; I found this code in google, it is written with pyqt4, and I want to adapt it for pyqt5, but I encountered difficulties to fix the errors. old code with pyqt4 : import sys, csv from PyQt4 import...
atlass218 GUI 4 4,903 Jan-17-2020, 08:55 AM
    Thread: to display cotent of database between two dates
Post: RE: to display cotent of database between two date...

Hi; I found the fault in my code which was causing the error by modifying the command line into "select_by_dates" function as follows: c = curseur.execute("SELECT * FROM correction_loc35R where dat...
atlass218 GUI 29 9,191 Jan-17-2020, 08:44 AM
    Thread: to display cotent of database between two dates
Post: RE: to display cotent of database between two date...

with this line I import Ui_MainWindow from main.py file, that you will find it in the link below : main.py file obtained from main.ui (QtDesigner) this main.py file must be downloaded and put with th...
atlass218 GUI 29 9,191 Jan-13-2020, 08:06 PM
    Thread: to display cotent of database between two dates
Post: RE: to display cotent of database between two date...

code of index.py : #!/usr/bin/python3 # -*- coding: utf-8 -*- ############################################################### # import os : import os, errno from os import path import pathlib import...
atlass218 GUI 29 9,191 Jan-12-2020, 03:03 PM
    Thread: to display cotent of database between two dates
Post: RE: to display cotent of database between two date...

my little project is not created with the object oriented programming process, I am minimizing the code; in the near future i will post the code that would be useful to you
atlass218 GUI 29 9,191 Jan-10-2020, 11:26 PM

User Panel Messages

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