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 gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk | |
class ButtonWindow(Gtk.Window): | |
def __init__(self): | |
Gtk.Window.__init__(self, title="Button Demo") | |
self.set_border_width(10) |
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
#!python3.7 | |
import random | |
import time | |
import PySide2 | |
from PySide2 import QtCore, QtWidgets | |
from PySide2.QtCore import Slot, Signal, QObject, QThreadPool, QRunnable | |
class MyEmitter(QObject): |
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
""" | |
Using COM interop with pywin32 to open files (and edit and save, save as...) | |
with MS Word (and other office apps). Here we'll open a docx file and save | |
it as pdf. | |
You need to have office installed. | |
Source: http://timgolden.me.uk/python/win32_how_do_i/generate-a-static-com-proxy.html | |
static - dynamic proxy to office COM obj. |