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
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
from PyQt4.QtWebKit import * | |
from PyQt4.QtNetwork import * | |
class JendelaUtama(QMainWindow): | |
def __init__(self, parent=None): | |
super(JendelaUtama, self).__init__(parent) |
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
self.websettings = QWebSettings #setting untuk browser web | |
self.websettings = { | |
'JavascriptEnabled': True, | |
'AutoLoadImages': True} | |
#widget untuk menampilkan halaman web: QWebView | |
self.twitterView = QWebView(self) | |
self.twitterView.load(QUrl('http://twitter.com/login')) | |
self.setCentralWidget(self.twitterView) |
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
tombolKeluar = QtGui.QPushButton("Keluar", self) | |
self.connect(tombolKeluar, QtCore.SIGNAL("clicked()"), self.keluar()) |
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
def keluar(self): | |
print "Ok, deh saya tutup jendelanya" | |
self.close() |
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
def createAction(self, text, slot=None, shortcut=None, icon=None, | |
tip=None, checkable=False, signal="triggered()"): | |
action = QAction(text, self) | |
if icon is not None: | |
action.setIcon(QIcon(":/%s.png" % icon)) | |
if shortcut is not None: | |
action.setShortcut(shortcut) | |
if tip is not None: | |
action.setToolTip(tip) | |
action.setStatusTip(tip) |
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
import csv | |
import datetime | |
import sys | |
from PyQt4 import QtCore, QtGui | |
from Ui_dialog import Ui_Dialog | |
datesufix = datetime.date.today().strftime("%Y%m%d") | |
dialog_account_no = '1111111111111' |
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
# File: Create Customers Directoties/Folders | |
# Create Customers Folders from Customers data in Excel | |
import pandas | |
# define function to get data | |
def get_data(filedata): | |
try: | |
customers_dataframe = pandas.read_excel(filedata) |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Apr 12 20:47:27 2020 | |
@author: micosiahaan | |
""" | |
from math import pi, log | |
#define class Egg |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer