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
from PyQt5.QtCore import * | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtGui import * | |
from PyQt5.QtWebKitWidgets import * | |
from PyQt5.QtPrintSupport import * | |
import os | |
import sys | |
class AboutDialog(QDialog): |
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
def down(): | |
if GPIO.input(7) == False: | |
# Turn on the LED | |
GPIO.output(13, True) | |
# Loop until we're at the bottom | |
while GPIO.input(7) == False: | |
time.sleep(0.5) |
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
from bs4 import BeautifulSoup | |
# Python 3.x | |
from urllib.request import urlopen, urlretrieve | |
# Removed the trailing / from the URL | |
url = 'https://www.rbi.org.in/Scripts/bs_viewcontent.aspx?Id=2009' | |
u = urlopen(url) | |
try: | |
html = u.read().decode('utf-8') | |
finally: |