This file contains 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
from PyQt5 import QtWidgets, QtGui, QtCore | |
from PyQt5.QtCore import pyqtSignal | |
from http.client import HTTPSConnection | |
from bs4 import BeautifulSoup | |
import time | |
font_but = QtGui.QFont() | |
font_but.setFamily("Segoe UI Symbol") | |
font_but.setPointSize(10) |
This file contains 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
from PyQt5 import QtWidgets, QtGui, QtCore | |
font_but = QtGui.QFont() | |
font_but.setFamily("Segoe UI Symbol") | |
font_but.setPointSize(10) | |
font_but.setWeight(95) | |
class PushBut1(QtWidgets.QPushButton): | |
def __init__(self, parent=None): |
This file contains 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
# python 3.x version | |
# pip install more_itertools - if not installed | |
import more_itertools | |
youlist = [[1, 2, [3]], 4] | |
res = list(more_itertools.collapse(youlist)) | |
print(res) |