Skip to content

Commit

Permalink
renamming module
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-prakash1907 committed Mar 28, 2021
1 parent 1cd25a1 commit d0bde12
Showing 1 changed file with 6 additions and 41 deletions.
47 changes: 6 additions & 41 deletions cater/secreatShare.py → cater/cater.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
## importing modules
from shareBox import server as sender
from shareBox import client as receiver
#import server as sender
#import client as receiver

######################

class secreatShare():
class cater():
def __init__(self, menuOption=""):
###
self.__mainMenu = "\n Menu\n"+"-"*6+"\n\n1. Send Files! \n2. Receive Files!"+menuOption
Expand All @@ -19,7 +17,7 @@ def __menu__(self):
return ch

## mainApp
def secreatShare(self):
def cater(self):
## making host to share files
if self.choice == '1':
Sender = sender.server()
Expand Down Expand Up @@ -48,9 +46,9 @@ def app():

while flag:
## creating an instance
secreatShareApp = secreatShare(addOnMenu)
caterApp = cater(addOnMenu)
## sharing the files
flag = secreatShareApp.secreatShare()
flag = caterApp.cater()

## adding exit choice in menu
if flag and firstRun:
Expand All @@ -59,43 +57,10 @@ def app():
addOnMenu = "\n* Any other key to exit!!"

## deleting current instence on Secreat Share App
del(secreatShareApp)
del(caterApp)

## exit prompt
if firstRun:
print("\nSomething went wrong!!\nApp terminated unexpectedly!!")
else:
print("\nThanks for using 'Secreat Share'!\n")




'''
## main application ##
if __name__ == '__main__':
flag = True
firstRun = True
addOnMenu = ''
while flag:
## creating an instance
secreatShareApp = secreatShare(addOnMenu)
## sharing the files
flag = secreatShareApp.secreatShare()
## adding exit choice in menu
if flag and firstRun:
firstRun = False
if firstRun is False:
addOnMenu = "\n* Any other key to exit!!"
## deleting current instence on Secreat Share App
del(secreatShareApp)
## exit prompt
if firstRun:
print("\nSomething went wrong!!\nApp terminated unexpectedly!!")
else:
print("\nThanks for using 'Secreat Share'!\n")
'''
print("\nThanks for using 'Secreat Share'!\n")

0 comments on commit d0bde12

Please sign in to comment.