Using Easygui with python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grisdrew
    New Member
    • May 2007
    • 2

    #1

    Using Easygui with python

    Hey All, requesting some help.

    I have been developing scripts for automating hardware tests. I have been able to use py2exe to compile them and run them on other machines. To make it user friendly and keep it basic for myself, I am trying to use Easygui. When I run my program within python, i get my expect dialog boxes, etc.

    I then compiled my code with py2exe, but now all that happens is the command prompts opens and closes immediately. I don't get my dialogs boxes and my tests don't work.

    I am sure it is a basic questions, but if someone could shed some light, I would appreciate it.

    Please keep in mind that I only started coding 2 weeks ago so am, needless to say, an amateur

    Thanks in advance for the help.
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by grisdrew
    Hey All, requesting some help.

    I have been developing scripts for automating hardware tests. I have been able to use py2exe to compile them and run them on other machines. To make it user friendly and keep it basic for myself, I am trying to use Easygui. When I run my program within python, i get my expect dialog boxes, etc.

    I then compiled my code with py2exe, but now all that happens is the command prompts opens and closes immediately. I don't get my dialogs boxes and my tests don't work.

    I am sure it is a basic questions, but if someone could shed some light, I would appreciate it.

    Please keep in mind that I only started coding 2 weeks ago so am, needless to say, an amateur

    Thanks in advance for the help.
    Yeah. There's nothing basic about using py2exe for anything but pure python (no third party packages). I've posted a setup script here which demonstrates some of the options you have when trying to gain control over what py2exe actually includes (and doesn't include). Since I don't use easygui, you'll have to experiment with that script until you get the desired results.

    Thanks for joining us on TheScripts.com.

    Comment

    • grisdrew
      New Member
      • May 2007
      • 2

      #3
      Originally posted by bartonc
      Yeah. There's nothing basic about using py2exe for anything but pure python (no third party packages). I've posted a setup script here which demonstrates some of the options you have when trying to gain control over what py2exe actually includes (and doesn't include). Since I don't use easygui, you'll have to experiment with that script until you get the desired results.

      Thanks for joining us on TheScripts.com.

      Thank you for the quick reply. Please keep in mind I am more of a mechanic than a software guru...

      Is there something better than py2exe to use for this scenario?

      Thanks again for the help

      Comment

      • bartonc
        Recognized Expert Expert
        • Sep 2006
        • 6478

        #4
        Originally posted by grisdrew
        Thank you for the quick reply. Please keep in mind I am more of a mechanic than a software guru...

        Is there something better than py2exe to use for this scenario?

        Thanks again for the help
        I've chosen to use py2exe (better? hard to say)...
        true911m has posted a simple walkthrough or pyinstaller, here ...(options are always a good thing).

        Comment

        Working...