Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Windows 10: AttributeError: 'WM_PenProvider' object has no attribute 'hwnd'
Post: Windows 10: AttributeError: 'WM_PenProvider' objec...

Hello, when I execute my kivy program I get the following error message: Quote:AttributeError: 'WM_PenProvider' object has no attribute 'hwnd' Small description on how my app works. My app starts wit...
mikepy GUI 1 2,392 Feb-19-2023, 04:01 PM
    Thread: Kivy UI language translation lib
Post: RE: Kivy UI language translation lib

(Feb-11-2023, 02:07 PM)Larz60+ Wrote: you can look here: https://pypi.org/search/?q=translators it has been said (not by me, as I am unfamiliar with the module) that translators is a good choice.Tha...
mikepy GUI 2 1,199 Feb-11-2023, 02:12 PM
    Thread: Kivy UI language translation lib
Post: Kivy UI language translation lib

Hi guys! Is there any library which I can use to translate my Kivy UI into any other language? In my case, I want to transform my UI language from Greek -> English and Greek -> German.
mikepy GUI 2 1,199 Feb-11-2023, 12:16 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Weird behaviour using if statement in python 3...

This is what I have also encountered after trying lots and lots of things in VS Code and the debugger, that it doesn't behave well at anytime. Your example shows this also. In my opinion the debugger ...
mikepy General Coding Help 23 3,768 Jan-18-2023, 04:51 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Weird behaviour using if statement in python 3...

Quote:Not to be mean, but the code in your last post is worthless. Not only is there no way I can run this code, but it doesn't even include any reference to your earlier posts. Where in this method d...
mikepy General Coding Help 23 3,768 Jan-17-2023, 05:29 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Weird behaviour using if statement in python 3...

(Jan-16-2023, 05:10 PM)deanhystad Wrote: What do you mean by "The same behavior occurs in both terminal and VSCode." You demonstrated the VSCode behavior using a screenshot of a debugging session. ...
mikepy General Coding Help 23 3,768 Jan-16-2023, 06:40 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Weird behaviour using if statement in python 3...

(Jan-15-2023, 07:13 PM)deanhystad Wrote: I use a very simple configuration when running the "current" file. Quote: "configurations": [ { "name": "Python: Current File", "type": "python", ...
mikepy General Coding Help 23 3,768 Jan-16-2023, 05:00 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Weird behaviour using if statement in python 3...

(Jan-15-2023, 06:31 PM)deanhystad Wrote: The best way to demonstrate the wrong behavior is to produce an example that allows others to reproduce what you are seeing. So far the only way I can repro...
mikepy General Coding Help 23 3,768 Jan-15-2023, 06:49 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Wired behavior using if statement in python 3....

(Jan-15-2023, 05:59 PM)mikepy Wrote: (Jan-15-2023, 05:16 PM)deanhystad Wrote: You can paste images. I've seen it done. But for nearly every kind of discussion about programs and errors, text is ...
mikepy General Coding Help 23 3,768 Jan-15-2023, 06:14 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Weird behaviour using if statement in python 3...

(Jan-15-2023, 06:02 PM)deanhystad Wrote: To paraphrase, the original question is "I have an if statement. Even though the condition is false, the statement is executed". You have not demonstrated ...
mikepy General Coding Help 23 3,768 Jan-15-2023, 06:07 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Weird behaviour using if statement in python 3...

Guys, after trying the solution of @Yoriz i.e. this: print(1 == 2) if 1 == 2: print("[...]") print("Ended")The code works properly, which is wired because only adding the last print("Ended") part...
mikepy General Coding Help 23 3,768 Jan-15-2023, 06:06 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Wired behavior using if statement in python 3....

(Jan-15-2023, 05:16 PM)deanhystad Wrote: You can paste images. I've seen it done. But for nearly every kind of discussion about programs and errors, text is superior to a screen shot. Here, for e...
mikepy General Coding Help 23 3,768 Jan-15-2023, 05:59 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Wired behavior using if statement in python 3....

(Jan-15-2023, 05:27 PM)Yoriz Wrote: But the forum rules advise people to not post images, so please don't.Ok I will keep this in mind. (Jan-15-2023, 05:51 PM)rob101 Wrote: As an observation, from t...
mikepy General Coding Help 23 3,768 Jan-15-2023, 05:51 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Wired behavior using if statement in python 3....

(Jan-15-2023, 05:27 PM)Yoriz Wrote: 1 does not equal 2 so will always be false The brackets are not required in the if statement, print(1 == 2) if 1 == 2: print("[...]") print("Ended")Output:Fa...
mikepy General Coding Help 23 3,768 Jan-15-2023, 05:50 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Wired behavior using if statement in python 3....

(Jan-15-2023, 03:01 PM)deanhystad Wrote: Post code, not broken links to images.To be honest I don't know why there is no possibility like in other forums to copy and paste images. Nevertheless, the ...
mikepy General Coding Help 23 3,768 Jan-15-2023, 05:03 PM
    Thread: Weird behaviour using if statement in python 3.10.8
Post: Weird behaviour using if statement in python 3.10....

Hello, can someone explain me this wired behavior? At the if statement which you can see in the screenshot, despite if 1==2 (for test only) is false, the statement gets executed which is shown by the ...
mikepy General Coding Help 23 3,768 Jan-15-2023, 02:59 PM
    Thread: Kivy 2.2.0 not available. You have 2.1.0, but the application requires 2.2.0)
Post: Kivy 2.2.0 not available. You have 2.1.0, but the ...

Hi guys! Has anybody the same problem to install the kivy 2.2.0 update on Ubuntu? I have tried to update the library, but in VS Code the error remains. I have also tried to run my kivy app via the ter...
mikepy GUI 1 3,842 Jan-10-2023, 06:11 PM
    Thread: Convert a string to a function
Post: RE: Convert a string to a function

Thank you guys I will try your solutions!!! EDIT: After trying both of your solutions it works like a charm. Thank you very much :).
mikepy General Coding Help 8 2,597 May-13-2022, 07:28 PM
    Thread: Convert a string to a function
Post: RE: Convert a string to a function

(May-13-2022, 05:52 PM)jefsummers Wrote: Self modifying code, execution of user supplied code, all generally frowned upon as unsafe. Still, people ride barrels over Niagara Falls (not lately). You ...
mikepy General Coding Help 8 2,597 May-13-2022, 06:08 PM
    Thread: Convert a string to a function
Post: RE: Convert a string to a function

(May-13-2022, 05:30 PM)mikepy Wrote: Hello, is there a possibility or library to convert the following string to a function? func_str = '''def test(event, x, y, flags, data): if event == cv2.EV...
mikepy General Coding Help 8 2,597 May-13-2022, 06:05 PM

User Panel Messages

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