Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

'<=' not supported between instances of 'int' and 'method'

enter image description here
enter image description here

>! How to fix this error? I wanted to make this application in such a way that when you enter into Text_Field = Entry (root, textvariable = txt), e.g. the number 20, a 20-character password is generat

‘<=’ not supported between instances of ‘int’ and ‘method’


MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

It is because L2 is just the reference to the function Pole_tekstowe.get, you need to use Pole_tekstowe.get() to get the input text and use int() to convert it to integer in order to pass it as the second argument of random.sample():

L2 = int(Pole_tekstowe.get())
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading