how to get signal when field is activated (Python, PyQt5, QDateEdit) [duplicate] - python

This question already has answers here:
How can I intercept when a widget loses its focus
(1 answer)
PyQt5 focusIN/Out events
(2 answers)
Closed 4 months ago.
I need to receive a signal when the field (QDateEdit) is activated. I did not find such a signal in the documentation.
Perhaps i need to redefine the class for this? but I don't know how to describe it all in working code

Related

How to get automatic stuff per second in my game [duplicate]

This question already has answers here:
Spawning multiple instances of the same object concurrently in python
(1 answer)
Is there a way to have different tick rates for differents parts of my code in pygame?
(1 answer)
Closed 9 months ago.
I am making a game in python using pygame in which you click a candy and you get candies. This game is similar to the famous game 'Cookie Clicker'. I've got the clicking part done but I have no idea how to do the auto candies per second. If anybody knows how to do this, please tell me.

Clear the Python shell window [duplicate]

This question already has answers here:
how to clear the screen in python [duplicate]
(1 answer)
How to clear the interpreter console?
(31 answers)
Closed 3 years ago.
I'm trying to clear the shell window when the actual code runs. I've done a couple different searches and saw some options but none seem to work. Here is the one I've been trying to get to work (I'm using Python 3.8.1).
import os
os.system('cls')

PyQt4 QtCore.QObject.connect(..., QtCore.SIGNAL(...), ...) into PyQt5 [duplicate]

This question already has answers here:
PyQt5 converting signal code from PyQt4
(1 answer)
Correct way to convert old SIGNAL and SLOT to new style?
(1 answer)
Closed 3 years ago.
I’m translating Yasin’s Model View Video Tutorial Series from PyQt4 into PyQt5. I’m stuck with the following code block:
QtCore.QObject.connect(self.uiFilter, QtCore.SIGNAL("textChanged(QString)"), self._proxyModel.setFilterRegExp)
How shall it be written in PyQt5?
The complete code:
http://www.yasinuludag.com/PyQt/Tutorial05/Tutorial05_ProxyModel.py
The tutorial:
http://discourse.techart.online/t/pyqt-model-view-video-tutorial-series-part-01/1401
Thanks

Making a Python RTL Textbox in Tkinter [duplicate]

This question already has answers here:
How to set justification on Tkinter Text box
(4 answers)
Closed 6 years ago.
I am making a basic python Tkinter calculator and I need to know how to force the Textbox I have made to be Right to Left because that is what most calculators use. Is their a simple way to do this?
It is as simple as
justify='right'

Python: Is it possible to make a tkinter program on top of all windows? [duplicate]

This question already has answers here:
How to make a Tkinter window jump to the front?
(12 answers)
Closed 6 years ago.
is there any way to make a tkinter program on top of all windows? Like switching to a new window will not minimize or put the tkinter program back, thanks!
Yes. You just need to set the window manager attribute topmost:
mywindow.wm_attributes("-topmost", True)

Categories

Resources