Skip to content

Commit

Permalink
Made loginDialog modal. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
FeZoli committed Mar 3, 2014
1 parent c20bba0 commit d60193d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion ProdMaster/hu/minux/prodmaster/gui/LoginDialog.py
Expand Up @@ -63,4 +63,7 @@ def __init__(self, master):

self.resizable(False, False)
self.focus()
self.lift(master)
self.lift(master)
self.transient(master)
self.grab_set()
master.wait_window(self)
12 changes: 8 additions & 4 deletions ProdMaster/hu/minux/prodmaster/gui/MainWindow.py
Expand Up @@ -52,6 +52,10 @@ def _createMenu(self):
menubar = Menu(self.master)

for element in Main.getMainMenuItems():

if (element.is_root == True):
print (element.name)

pass


Expand Down Expand Up @@ -95,14 +99,14 @@ def _onSuccessfulLogin(self, loginWidget):
self._createMenu()
self._createLayout()
self._createWidgets()
w, h = self.master.winfo_screenwidth(), self.master.winfo_screenheight()
self.master.geometry("%dx%d+0+0" % (w, h-60))
self.master.minsize(800, 600)



root = tkinter.Tk()
root.title(World.L("Application.TITLE"))
root.geometry("%dx%d+0+0" % (0, 0))
w, h = root.winfo_screenwidth(), root.winfo_screenheight()
root.geometry("%dx%d+0+0" % (w, h-60))
root.minsize(800, 600)
mainApp = MainWindow(master=root)
root.mainloop()

0 comments on commit d60193d

Please sign in to comment.