From duanek at chorus.net Thu Jul 11 22:25:24 2013 From: duanek at chorus.net (Duane Kaufman) Date: Thu, 11 Jul 2013 16:25:24 -0400 Subject: [Pygui] Problem with PyGUI on Windows 7 Message-ID: <20130711162524.fd6k1mptwgkc884c-qhnarx@webmail.spamcop.net> Hello, New to PyGUI, so if this is a known problem, I apologize, as I was unable to find anything on the Web. I started from the example nagbox.py, and modified it a bit (see below), but I am getting the error: c:\Users\dkaufman\Documents\Manufacturing\my_python\GoogleSpreadsheetTest>c:\pyt hon27\python config_box.py Traceback (most recent call last): File "config_box.py", line 1, in from GUI import ModalDialog, Label, Button, Task, application File "c:\python27\lib\site-packages\GUI\ModalDialog.py", line 5, in from GUI import application, export File "c:\python27\lib\site-packages\GUI\application.py", line 9, in from GUI import export ImportError: cannot import name export My install has no module included named export Thanks for your help, Duane from GUI import ModalDialog, Label, Button, Task, application class ConfigBox(ModalDialog): def __init__(self, text, timeout): ModalDialog.__init__(self) label = Label(text) self.ok_button = Button("OK", action = "ok", enabled = False) self.place(label, left = 20, top = 20) self.place(self.ok_button, top = label + 20, right = label.right) self.shrink_wrap(padding = (20, 20)) self.timer = Task(self.enable_button, timeout) def enable_button(self): self.ok_button.enabled = True def ok(self): self.dismiss(True) def main(): dlog = ConfigBox("Consider yourself nagged.", 10) dlog.present() if __name__ == '__main__': main() From greg.ewing at canterbury.ac.nz Sat Jul 13 02:50:41 2013 From: greg.ewing at canterbury.ac.nz (Greg Ewing) Date: Sat, 13 Jul 2013 12:50:41 +1200 Subject: [Pygui] Problem with PyGUI on Windows 7 In-Reply-To: <20130711162524.fd6k1mptwgkc884c-qhnarx@webmail.spamcop.net> References: <20130711162524.fd6k1mptwgkc884c-qhnarx@webmail.spamcop.net> Message-ID: <51E0A461.7050006@canterbury.ac.nz> Duane Kaufman wrote: > File "c:\python27\lib\site-packages\GUI\application.py", line 9, in > > from GUI import export > ImportError: cannot import name export > > My install has no module included named export I don't know what's happening. There should be an export() function defined in GUI.__init__.py. Are you using a fresh installation of PyGUI, or did you install it over an older version? If the latter, you could try deleting the whole GUI directory and reinstalling. -- Greg