Changeset 5638 for pjproject/trunk/pjsip-apps/src/pygui/endpoint.py
- Timestamp:
- Aug 2, 2017 9:45:09 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pygui/endpoint.py
r4704 r5638 21 21 import sys 22 22 if sys.version_info[0] >= 3: # Python 3 23 24 25 23 import tkinter as tk 24 from tkinter import ttk 25 from tkinter import messagebox as msgbox 26 26 else: 27 28 29 27 import Tkinter as tk 28 import tkMessageBox as msgbox 29 import ttk 30 30 31 31 import pjsua2 as pj … … 34 34 35 35 class Endpoint(pj.Endpoint): 36 37 38 39 40 41 42 43 44 36 """ 37 This is high level Python object inherited from pj.Endpoint 38 """ 39 instance = None 40 def __init__(self): 41 pj.Endpoint.__init__(self) 42 Endpoint.instance = self 43 44 45 45 def validateUri(uri): 46 46 return Endpoint.instance.utilVerifyUri(uri) == pj.PJ_SUCCESS 47 47 48 48 def validateSipUri(uri): 49 49 return Endpoint.instance.utilVerifySipUri(uri) == pj.PJ_SUCCESS 50 50 51 51 52 52 if __name__ == '__main__': 53 53 application.main()
Note: See TracChangeset
for help on using the changeset viewer.