-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
from tkinter import messagebox | ||
import sys | ||
import os | ||
class PopupWindow(): | ||
def __init__(self) -> None: | ||
pass | ||
def ShowPopupWindow(self,message): | ||
messagebox.showinfo("Notice",message) | ||
def __init__(self,nativepath="./x64/Debug") -> None: | ||
self.allownative=False | ||
if os.path.exists(nativepath): | ||
sys.path.append(nativepath) | ||
from nativepopup import PopWin | ||
self.allownative=True | ||
def ShowPopupWindow(self,title,message): | ||
messagebox.showinfo(title,message) | ||
def ShowWarning(self,message): | ||
messagebox.showwarning("Warning",message) | ||
messagebox.showwarning("Warning",message) | ||
def ShowNativePop(self,title,message): | ||
if self.allownative==False: | ||
self.ShowPopupWindow(title,message) | ||
from nativepopup import PopWin | ||
PopWin("test","test114") |
Empty file.
Empty file.