Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipviewer.py #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions IP-Viewer/ipviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
#Program code begins here

# ipviewer v1.3 script by gauravssnl
import appuifw,e32,os,sys,re,globalui
import appuifw
import e32
import os
import sys
import re
import globalui
import math
import data
dir=appuifw.app.full_name()[0]
path=dir+":\\System\\Apps\\IP Viewer\\"
# print path
Expand All @@ -18,8 +25,8 @@
try:
import miso
miso_import =1
except:
pass
except:
pass # an empty block
lock=e32.Ao_lock()
title="IP Viewer v1.3"
ru= lambda txt:txt.decode("utf-8","ignore")
Expand All @@ -28,6 +35,7 @@
logfile="C:\\IPViewerlog.txt"
ss="Simple Server_0xe247d320.exe"

# create class Settings(object):
class Settings(object):
def __init__(self):
self.APN= -1
Expand All @@ -54,7 +62,8 @@ def save(self):
os.mkdir(path)
open(configfile,"w").write(data)
del data


# create class UI(object):
class UI(object):
def __init__(self):
self.lock=e32.Ao_lock()
Expand Down Expand Up @@ -89,7 +98,7 @@ def app(self):
e32.ao_sleep(2)
os.abort()
else:
pass
pass # an empty block
self.write("Access Point: %s"%self.ap_list[self.apid_list.index(self.sets.APN)])
self.write("Find IP:%s"%self.insta(self.sets.IPHUNT))
self.write("Run Simple Server: %s"%self.yesno[self.sets.RUNSS])
Expand Down Expand Up @@ -304,13 +313,13 @@ def compress(self):
miso.compress_all_heaps()
#appuifw.note(u"Co")
except:
pass
pass # an empty block
else:
pass
pass # an empty block




e32.ao_yield()
ui=UI()
ui.app()
e32.ao_yield() # Close
ui=UI() # Close
ui.app() # Close