Re: For a hierarchical project, the EXE file generated by "pyinstaller" does not start.

2021-12-08 Thread Mohsen Owzar
Chris Angelico schrieb am Dienstag, 7. Dezember 2021 um 19:16:54 UTC+1: > On Wed, Dec 8, 2021 at 4:49 AM Mohsen Owzar wrote: > > *** > >

For a hierarchical project, the EXE file generated by "pyinstaller" does not start.

2021-12-07 Thread Mohsen Owzar
Hi all, I have a problem with "pyinstaller". When I compile a single Python file, an EXE file is created in the "dist" directory, with which I can start the program and the GUI appears after a few seconds. But when I try to compile my project with "pyinstaller Relais_LastDauerTester.py" and ge

New overriden and generated QLineEdit class will not be placed on the MainWindow as expected

2021-10-08 Thread Mohsen Owzar
Hi all Some days ago, I send a question to this community about a clickable QLineEdit. After getting the Hint to use QMouseEvent, I've written the program which is working almost good but with a small or perhaps big ugliness and that is: Below is the imgur link to the screenshots of my program aft

Open a new window by mouse clicking in the QLineEdit field and not by clicking of a button

2021-10-05 Thread Mohsen Owzar
Hi all, I'm looking for an approach, but couldn't find any appropriate answer to my problem: On my GUI on a tablet, I have bunch of QlineEdit widgets for the settings of my task. Because we have no keyboard connected to the tablet, I have put two buttons ("+" and "-") around each QLineEdit widge

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-26 Thread Mohsen Owzar
Mohsen Owzar schrieb am Donnerstag, 23. September 2021 um 08:53:15 UTC+2: > DFS schrieb am Mittwoch, 22. September 2021 um 09:41:42 UTC+2: > > On 9/22/2021 1:54 AM, Mohsen Owzar wrote: > > > DFS schrieb am Mittwoch, 22. September 2021 um 05:10:30 UTC+2: > > >>

Re: Flush / update GUIs in PyQt5 during debugging in PyCharm

2021-09-26 Thread Mohsen Owzar
DFS schrieb am Freitag, 24. September 2021 um 14:52:41 UTC+2: > On 9/24/2021 12:46 AM, Mohsen Owzar wrote: > > Hi Guys > > I've written a GUI using PyQt5 and in there I use StyleSheets (css) for the > > buttons and labels to change their background- and foreground-co

Flush / update GUIs in PyQt5 during debugging in PyCharm

2021-09-23 Thread Mohsen Owzar
Hi Guys I've written a GUI using PyQt5 and in there I use StyleSheets (css) for the buttons and labels to change their background- and foreground-colors and their states as well. Because my program doesn't function correctly, I try to debug it in my IDE (PyCharm). The problem is that during debu

When should I use "parent=None" in __ini__ and "parent" in super()

2021-09-23 Thread Mohsen Owzar
Hi Guys I'm writing since almost one-year codes in Python, using TKinter and PyQt5. I'm somehow able to writes GUIs in both of them. But since I'm using more Pyqt5 and using classes with initialization and super() constructs, and also I saw lots of videos and examples of coding them, I still don’

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-23 Thread Mohsen Owzar
DFS schrieb am Mittwoch, 22. September 2021 um 09:41:42 UTC+2: > On 9/22/2021 1:54 AM, Mohsen Owzar wrote: > > DFS schrieb am Mittwoch, 22. September 2021 um 05:10:30 UTC+2: > >> On 9/21/2021 10:38 PM, Mohsen Owzar wrote: > >>> DFS schrieb am Dienstag, 21. Se

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-22 Thread Mohsen Owzar
DFS schrieb am Mittwoch, 22. September 2021 um 05:10:30 UTC+2: > On 9/21/2021 10:38 PM, Mohsen Owzar wrote: > > DFS schrieb am Dienstag, 21. September 2021 um 15:45:38 UTC+2: > >> On 9/21/2021 4:36 AM, Mohsen Owzar wrote: > >>> Hi Guys > >>> Long time

Re: Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-21 Thread Mohsen Owzar
DFS schrieb am Dienstag, 21. September 2021 um 15:45:38 UTC+2: > On 9/21/2021 4:36 AM, Mohsen Owzar wrote: > > Hi Guys > > Long time ago I've written a program in Malab a GUI for solving Sudoku > > puzzles, which worked not so bad. > > Now I try to write th

Free OCR package in Python and selecting appropriate widget for the GUI

2021-09-21 Thread Mohsen Owzar
Hi Guys Long time ago I've written a program in Malab a GUI for solving Sudoku puzzles, which worked not so bad. Now I try to write this GUI with Python with PyQt5 or TKinter. First question is: Is there any free OCR software, packages or code in Python, which I can use to recognize the given dig

Re: PyQt5 is not recognized from python 3.8 installation in python 3.10

2021-08-24 Thread Mohsen Owzar
Barry schrieb am Dienstag, 24. August 2021 um 00:25:38 UTC+2: > > On 23 Aug 2021, at 00:00, Mats Wichmann wrote: > > > > On 8/22/21 7:04 AM, Mohsen Owzar wrote: > >> Hi guys, > >> I have on my laptop the python installation 3.8 and newly I installed &g

PyQt5 is not recognized from python 3.8 installation in python 3.10

2021-08-22 Thread Mohsen Owzar
Hi guys, I have on my laptop the python installation 3.8 and newly I installed newest version 3.10 as well on my laptop. Now I have two IDLEs for both of the installations. When I rund some *.py file, having PyQt5 module, on the 3.8 version, it works as before without any problems. But whenn I ru

Re: How to access a variable from one tab in another tab of a notebook?

2021-04-08 Thread Mohsen Owzar
Alan Gauld schrieb am Donnerstag, 8. April 2021 um 15:40:19 UTC+2: > On 08/04/2021 06:01, Mohsen Owzar wrote: > > >> But this is why GUIs are often(usually?) built as a class > >> because you can store all the state variables within > >> the instance and

Re: How to access a variable from one tab in another tab of a notebook?

2021-04-07 Thread Mohsen Owzar
Alan Gauld schrieb am Donnerstag, 8. April 2021 um 02:05:01 UTC+2: > On 07/04/2021 09:35, Mohsen Owzar wrote: > > > The problem is that I can't use the variable "val" from Tab2 in Tab 1, > > # Filename: Tab1.py > > from tkinter import * > > >

How to access a variable from one tab in another tab of a notebook?

2021-04-07 Thread Mohsen Owzar
Hi guys I have written a GUI with two tabs, Tab 1 and Tab 2 as shown below: On Tab 2 should be my settings parameters placed like "Val". If the user types a value greater than 5 in the entry field, the background color of Tab1 should be changed from light green to gray and the button "B1" should