I have created gui using pyqt4 designer and covert to this ui to .py but I am unable to access radio button value and also wanna check which radio button is checked using python.
i tried following code :
a= radiobutton.get()
I can not get the value.
Please help me
The correct method is isChecked:
a = radiobutton.isChecked()
Related
I'm trying to get the value some text that I've hi-lighted with a mouse in Jupyter Interactive HTML widget in a python event and can't find an example of how to do this. Can anyone help?
I'm trying to automate installation (install anyware type) using pywinauto.
When I use function to dispaly controlls "print control identifiers()", I see only buttons like "minimize", "close" , "maximize" and window name. There is no "next button" and other required buttons, that I need for automating this installation.
this is how it looks after using this function:
enter image description here
this is how installer window looks :
enter image description here
code sample:
w_handle2 = pywinauto.findwindows.find_windows(title=u'PTC Solution Installer', class_name='SunAwtFrame')[0]
window2 = app.window(handle=w_handle2)
window2.print_control_identifiers()
Could you pleas help me, with my issue? Is ther any other way to check the controlls? I was also trying to use other software like inspector.exe, it tells me the windows name , but nothing about controlls.
If there is no other way, then maybe there is possibility to use function for clinking mouse, with some additional precision. For example finding specific string on installer window and clicking on it, or getting button string location and passing it, to mouse click coordinates.
Topic Update image with
inspect tool screenshot:
screenshot with inspect tool
winspy screenshots:
winspy screenshot1
winspy screenshot2
winspy screenshot3
I have a UI in Kivy with a load of buttons at the bottom of the screen. Ideally I want some of these buttons to be dropdowns but of course since they are at the bottom of the screen, you can't see the dropdown when they are tapped.
Is there any way to display dropdown items up rather than down?
Thanks for any help.
You can have a look at the kivy-md library if you start the application by running the main.py you will be able to see a demonstration of the up opening dropdown button. The widget is called MDRaisedButton.
Here is a preview
I'm a beginner with QT/PyQt4, and I'm trying to make a QListView display custom objects.
It should :
Have custom row widgets that display more than one line of text, possibly images
Trigger a modal dialog instead of the inline edit field whenever I double-click on an item
A QItemDelegate seems like the right choice, but I can't figure out how to use it properly for either #1 or #2. Any ideas?
I am working with python plugins.I designed my form using PYQT4 designer.I used two QCalendarWidget on my form.
I retrieved selected values of calendar using
date1 = self.calendarWidget.selectedDate()
But i wanted to make calendar invisible on load of the form.Once you click specific radio button,calendar should be visible.I tried googling but did not get visibility property of QCalendarWidget .
How do i make that??
You can use show(), hide(), setVisible(is_visible), etc... functions of base QWidget.
List of All Members for QCalendarWidget
So, when you are initializing widgets, call self.calendarWidget.hide(). Then in radio button toggled handler, call self.calendarWidget.show() or self.calendarWidget.setVisible(True)
Also, you can connect radio button toggled(bool) signal, to QWidget.setVisible(bool) slot in QtDesigner: