Repository URL to install this package:
|
Version:
1.0.18-1pclos ▾
|
#!/usr/bin/env python3
# Version: 1.0.18
# Licence: WTFP
# CopyCat is free software: you can redistribute it and/or modify
# it under the terms of WTFP Public License This program is distributed
# in the hope that it will be useful, but WITHOUT ANY WARRANTY.
import os
import sys
import gi
gi.require_version("Gtk", "3.0")
gi.require_version('Notify', '0.7')
from gi.repository import Gtk
from gi.repository import Notify
ICON_PATH = "/usr/share/icons/hicolor/48x48/apps/copycat.svg"
class copyCat:
title = "CopyCat"
data = ("No USB Key Device Detected On System!\n")
print ()
def self(data, title):
data = data
data = self.data
title = self.title
def __init__(self):
Notify.init("notify_applet")
n = Notify.Notification.new(self.title,self.data, icon = ICON_PATH)
n.show()
n.connect("closed", Gtk.main_quit)
Gtk.main()
def doCancel(self,notifyObj, action):
notifyObj.close()
Gtk.main_quit()
copyCat()