Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: python calculate float plus float is incorrect?
Post: RE: python calculate float plus float is incorrect...

a = 27.56 b = 13.78 c = a + b print(f"{c:.2f}")Output:41.34
Axel_Erfurt General Coding Help 6 314 Apr-16-2024, 11:15 AM
    Thread: +1 for posting quota
Post: RE: +1 for posting quota

Are you kidding?
Axel_Erfurt Networking 1 84 Apr-09-2024, 07:14 PM
    Thread: i have not decided which API to use
Post: RE: i have not decided which API to use

for PyQt6 / PySide6 with python3 https://zetcode.com/pyqt6/ https://doc.qt.io/qtforpython-6/examples/index.html
Axel_Erfurt GUI 3 372 Apr-05-2024, 06:28 AM
    Thread: m3u8 using build-in browser downloader?
Post: RE: m3u8 using build-in browser downloader?

What's the address of the m3u8?
Axel_Erfurt Web Scraping & Web Development 3 412 Mar-28-2024, 04:40 PM
    Thread: Is CTkDesigner worth the price?
Post: RE: Is CTkDesigner worth the price?

If you really want to learn something then avoid designers.
Axel_Erfurt GUI 5 455 Mar-25-2024, 05:08 PM
    Thread: print(0.1+0.2==0.3)
Post: RE: print(0.1+0.2==0.3)

https://0.30000000000000004.com/ explains it for many languages from decimal import Decimal a = Decimal("0.1") b = Decimal("0.2") x = a + b print(x)Output:0.3
Axel_Erfurt General Coding Help 3 417 Mar-04-2024, 12:46 PM
    Thread: recording textbox data into a variable
Post: RE: recording textbox data into a variable

That works with PySide6 import sys from PySide6.QtWidgets import QMainWindow, QApplication, QWidget, QLineEdit from PySide6.QtCore import Slot class MyMainWindow(QMainWindow): def __i...
Axel_Erfurt GUI 4 462 Feb-19-2024, 09:30 PM
    Thread: recording textbox data into a variable
Post: RE: recording textbox data into a variable

Line 44 is needed for what?
Axel_Erfurt GUI 4 462 Feb-19-2024, 09:24 PM
    Thread: recording textbox data into a variable
Post: RE: recording textbox data into a variable

That should be enough. def getTextInTextBox(self): textRecovering = self.sender() print(f"Text in the textbox is '{textRecovering.text()}'") return textRecoverin...
Axel_Erfurt GUI 4 462 Feb-19-2024, 06:58 PM
    Thread: main GUI is not shown
Post: RE: main GUI is not shown

missing imports in main_window.py ? QColor and Path import subprocess from adjustments_window import AdjustmentsWindow from merge_convert_window import MergeConvertWindow from PyQt6.QtGui import QFon...
Axel_Erfurt GUI 3 510 Feb-18-2024, 09:04 AM
    Thread: PAGE 8.0 RELEASED
Post: RE: PAGE 8.0 RELEASED

I tested it just out of curiosity. The problem only existed at the first start, but not again after that. I also rarely use Tkinter. PyQt and Gtk are more my choice and then without GUI designer.
Axel_Erfurt News and Discussions 4 809 Jan-06-2024, 12:47 PM
    Thread: PAGE 8.0 RELEASED
Post: RE: PAGE 8.0 RELEASED

Interesting, but unfortunately it can't be closed. The question comes up about saving, no matter what you click, it doesn't close. I killed it. The second time it started it worked.
Axel_Erfurt News and Discussions 4 809 Jan-05-2024, 09:36 PM
    Thread: GUI application - code review
Post: RE: GUI application - code review

Output:Traceback (most recent call last): File "/tmp/Pylang/MainWindow.py", line 6, in <module> from ContinueLearnFrame import ContinueLearnFrame File "/tmp/Pylang/ContinueLearnFrame.py"...
Axel_Erfurt Code Review 3 780 Jan-01-2024, 08:50 PM
    Thread: GUI application - code review
Post: RE: GUI application - code review

You should add a README with a description on github.
Axel_Erfurt Code Review 3 780 Jan-01-2024, 08:45 PM
    Thread: Why I am not getting the Redirected codes using requests?
Post: RE: Why I am not getting the Redirected codes usin...

Please keep two things in mind in the future. 1. Post code in code tags (Python Button). 2. Full quotes are pointless.
Axel_Erfurt General Coding Help 2 519 Dec-20-2023, 08:58 PM
    Thread: Bar Chart
Post: RE: Bar Chart

These are not numbers but a mix of letters and numbers. How is that supposed to work?
Axel_Erfurt General Coding Help 5 688 Dec-17-2023, 08:17 PM
    Thread: PySide6 Copy and Past from clipboard to QTableWedget
Post: RE: PySide6 Copy and Past from clipboard to QTable...

I advise you to start from the beginning without using the designer. Use layouts instead of setGeometry().
Axel_Erfurt GUI 6 1,295 Dec-06-2023, 12:27 PM
    Thread: Detecting Buttons - Suggestions?
Post: RE: Detecting Buttons - Suggestions?

(Nov-28-2023, 11:24 AM)RockBlok Wrote: One approach that I'm considering is having a program flip through all the windows, programs, and internet browsers I have open and then click appropriate butt...
Axel_Erfurt GUI 3 806 Nov-28-2023, 01:44 PM
    Thread: graphyview setdata() doesn't work after recieving a mount of data
Post: RE: graphyview setdata() doesn't work after reciev...

Can you please post your code as text (using the Python button)? Images of code are useless.
Axel_Erfurt GUI 3 730 Nov-22-2023, 05:58 PM
    Thread: PyQt5 Relative Layout
Post: RE: PyQt5 Relative Layout

What is QEditBox? save it as main.ui and load it in designer. I used QTextEdit as an example. <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MainWindow</class...
Axel_Erfurt GUI 1 634 Nov-10-2023, 01:52 PM

User Panel Messages

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