Example #1
0

def on_right_click(systray):
    visible = ctypes.windll.user32.IsWindowVisible(hwnd)
    ctypes.windll.user32.ShowWindow(hwnd, visible ^ 1)


from winsystray import SysTrayIcon, win32_adapter
import buildipdb
import builddomains

gloop_conf = os.path.join(config_dir, 'gloop.conf')

buildipdb.ds_APNIC.load()
builddomains.ds_FELIX.load()
gloop = cconfig('gloop', conf=gloop_conf)
gloop.add(['libuv-cffi', 'libev-cext', 'libev-cffi', 'nogevent'])
gloop.load()

MFS_CHECKED = win32_adapter.MFS_CHECKED
MFS_ENABLED = win32_adapter.MFS_ENABLED
MFS_DISABLED = win32_adapter.MFS_DISABLED
MFS_DEFAULT = win32_adapter.MFS_DEFAULT
MFT_RADIOCHECK = win32_adapter.MFT_RADIOCHECK
fixed_fState = MFS_CHECKED | MFS_DISABLED
NIIF_WARNING = win32_adapter.NIIF_WARNING
NIIF_USER = win32_adapter.NIIF_USER
NIIF_LARGE_ICON = win32_adapter.NIIF_LARGE_ICON


def download_cniplist(p):
Example #2
0
def on_right_click(systray):
    visible = IsWindowVisible(hwnd)
    ShowWindow(hwnd, visible ^ 1)


from winsystray import SysTrayIcon, win32_adapter
import updatecas
import buildipdb
import builddomains

buildipdb.data_source_manager.load()
builddomains.data_source_manager.load()
if not buildipdb.data_source_manager.data_source:
    buildipdb.data_source_manager.set(buildipdb.ds_17MON.name)
builddomains.data_source_manager.set(builddomains.ds_FELIX.name)
wintray = cconfig('wintray', conf=wintray_conf)
gloop = wintray.add_child('gloop')
gloop.add(['libuv-cffi', 'libev-cext', 'libev-cffi', 'nogevent'])
gloop.load()
sysproxy = wintray.add_child('sysproxy')
sysproxy.add(['start-set', 'quit-restore', 'auto', 'act'])
sysproxy.load()

MFS_CHECKED = win32_adapter.MFS_CHECKED
MFS_ENABLED = win32_adapter.MFS_ENABLED
MFS_DISABLED = win32_adapter.MFS_DISABLED
MFS_DEFAULT = win32_adapter.MFS_DEFAULT
MFT_RADIOCHECK = win32_adapter.MFT_RADIOCHECK
fixed_fState = MFS_CHECKED | MFS_DISABLED
pass_fState = 'pass', MFS_DISABLED
NIIF_WARNING = win32_adapter.NIIF_WARNING