Posts by David Jesse • 189 points
10 posts
-
1
votes1
answer938
viewsA: How to create buttons next and back QUI Pyqt4
Dude, I would have done something like this. Only in Pyqt5. In Pyqt5 they made some changes, passed the Widgets to a separate library, Qtwidgets and left only the basics in Qtgui. I can usually…
-
0
votes1
answer726
viewsA: How to insert accented characters in Text Entries in Pyqt5?
I managed to solve it. At least, for me, it works. I did the following: From Qlineedit, Qplaintextedit and Qtextedit, I created three new widgets, respectively, Qlineedit_ac, Qplaintextedit_ac and…
-
0
votes1
answer726
viewsQ: How to insert accented characters in Text Entries in Pyqt5?
My text entries in Pyqt5 (Qlineedit, Qplaintextedit, Dialogs,...) do not accept accented characters typed on the keyboard. I can only insert them if I type them in another editor and appeal to…
-
0
votes2
answers124
viewsA: Python: How to store the documentation(help) of a class in a String?
I’m sorry about my barbering, but I managed to find the solution. First, you have to import the pydoc import pydoc In Python 3: string_help = pydoc.render_doc(nome_da_classe,…
-
5
votes2
answers124
viewsQ: Python: How to store the documentation(help) of a class in a String?
I’m doing a Python class explorer. I can store class methods and attributes with dir(obj) and place them in a Treeview. I would like to display the references of this when clicked. For this I would…
-
7
votes1
answer88
viewsQ: How to list the synopsis of classes?
I started to venture into python and am making program that lists class properties. I use obj well.dic, help(obj), and dir(obj). Someone knows if there is a command that lists the synopses of the…
-
0
votes3
answers2025
viewsA: How to save a Base64 image to SQL and save it locally as PNG
Well, saving an image in an SQL database is complicated because its table structure is rigid, and when compressing, the size varies depending on the complexity of the image. If you use an SQL…
-
2
votes1
answer2058
viewsA: Progressive and cumulative hour counter with days
Very personal. To make calculations with hours, you need to turn the hour into a number that corresponds to the smallest significant unit you will work with. For example, if you need seconds, turn…
-
2
votes1
answer763
viewsQ: What is the correct way to structure addresses in Mongodb?
When I learned SQL, the way address was structured was to create a series of tables (neighborhoods, cities, states, countries). So I listed the tables. Then just add only the neighborhood id to the…
-
1
votes2
answers7184
viewsA: How to set a token in the header?
I don’t use localStorage, what I do is the following: In the Javascript page I create a variable for the token. I send the authentication by ajax( I had forgotten to mention this before, I apologize…