This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$J = jQuery.noConflict(); | |
$J(function() { | |
$J('.vote').click(); | |
}); | |
window.location.reload(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import sys | |
from PyQt5.QtCore import QObject, QThread, pyqtSignal, pyqtSlot | |
from PyQt5.QtWidgets import QApplication, QPushButton, QTextEdit, QVBoxLayout, QWidget | |
def trap_exc_during_debug(*args): | |
# when app raises uncaught exception, print info | |
print(args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create a popup window using a pushbutton in PyQt5 | |
import sys | |
from PyQt5 import QtCore, QtWidgets | |
class Ui_FirstWindow(object) : | |
def setupUi(self, FirstWindow) : | |
FirstWindow.setObjectName("FirstWindow") | |
FirstWindow.resize(400, 300) | |
self.centralWidget = QtWidgets.QWidget(FirstWindow) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5 import QtCore, QtWidgets | |
class MainWindow(QtWidgets.QWidget): | |
switch_window = QtCore.pyqtSignal(str) | |
def __init__(self): | |
QtWidgets.QWidget.__init__(self) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add the following in your functions.php file. |