Check box - PyQt with Python GUI Programming tutorial 8

preview_player
Показать описание
In this PyQT4 GUI application development tutorial, we cover how to add a toggle check box, and get the result of the current state of it.

Рекомендации по теме
Комментарии
Автор

I am kind of start learning python 2 months ago, I found your video is really really helpful, simple and easy for certain module or task introductions helps me to build my project eventually . I want to thank you for your spending time putting these material together . awesome job !!!

deter
Автор

Man, you are great! I love your lessons. Thanks for sharing.

DarmstadtDE
Автор

if you put the toggle after assigning the method the window start already Enlarged


checkBox.toggle()

becerraluisc
Автор

I don't quite understand the enlarge_window() method. It has the argument 'state' but you don't seem to pass this argument to it when you call it. Would you mind explaining how this works?

thirstyforbeer
Автор

Won't swapping checkBox.toggle() - checkBox.stateChanged... work? Logically it can't call the method because it's not assigned yet.

ihnwtpu
Автор

Is there any method where we can check the status of the toggle (bit)? Eg. if toggle==1 then do something, if toggle==0 do something else?

rohanrayakar
Автор

what about checking the box on the init method ? it should then automatically call the enlarge_window method. isn't it ?

PalazonPhotograpy
Автор

hi what is the purpose of home & why are its contents not in the init, why are we keeping seperate

DW
Автор

even though i have checkBox = QtGui.QCheckBox('Enlarge Window', self) the text displayed next the the checkbox is only
'Enlarge Wind' i don't know what happened to the 'ow'

Am I missing something?

andrewwidlacki
Автор

Is it possible to create a toolbar with only check boxes and without any icons?

michaelliu
Автор

The text I used doesn't appear completely. I guess its a matter of the frame that is allotted to the checkbox. How can I make the entire text appear?

NitinChauhan-vhyk
Автор

Great video. Just one question: I find the packing managers in tkinter very helpful. Is there anything similar in PyQt? Something that just arranges stuff for me and all I have to do is to determine a loose grid location? I feel like these 'fixed' move-locations for all those widgets will not be very convenient in larger forms or forms with dynamic content (image displays, canvas)....

needmorebrain
Автор

how to change the color of the checkBox????

gokuln
Автор

Couldn't you just put checkBox.toggle() after you do And then it would work?

TeamViperUK
Автор

How do you get the current position, in case you don't want to move the window back to 50, 50 each time you press it?

Peteman
Автор

Hey man! Do you teach how to use Radio Button in these videos?

rairfs
Автор

I have a problem: AttributeError: 'Window' object has no attribute 'enlagre_window'. Can somebody help to solve it?

viitaliich
Автор

seems something is missing for both QmessageBox and CheckBox in Pyqt5, python stop working when we  this two feathurs.if anyone have already fixed this two issue please to share.

riatimohamed
Автор

If you are on a Linux system and your text for the checkBox is getting cut off. Enter: after checkBox.move() in your home method.

robertmurch
Автор

Hello, thank you for sharing your knowledge of PyQt4, I have already watched your videos and found it interesting to pass a project that I have already up and running in WxPython to pass to PyQt, as I am having the trouble to make a button1 ("select all ") let trace 20 checkbox in just one click .checked == True, and conversely, make button2 (" uncheck All ") uncheck those 20 checkboxes leaving = .checked == False, could you help me in this ? sending source code of + or - 240 lines ...

DoctorComputersBgi