<reponame>zenzue/viBot
#!/usr/bin/env python2
#-*- coding: utf-8 -*-
#
#

""" Popup message module for viBot Project """

__author__ = "blackvkng"

import os
import Tkinter as tk
import tkMessageBox as messagebox

usage = "[?] Popup module usage: popup TEXT"

def run(message):
	if os.name == "nt":
		import ctypes
		ctypes.windll.user32.MessageBoxA(None, message, message, 0)
	else:
		root = tk.Tk()
		root.withdraw()
		messagebox.showinfo(message, message)
		root.destroy()
