New to Python.... (UNCLASSIFIED)

Classification: UNCLASSIFIED
Caveats: NONE

Hi all!

I'm brand new to the Python programming language.
I have done a little basic (The Basic programming language)
programming before.

I have this Python program that was released to the public
via GNU license. It is a command line only program.
There are a couple of edits that need to be done within the
program before running it.

I would like to build a GUI for it.

Any suggestion on how I should start?

Thanks,

Ray

Raymond C. Jender
Booz>Allen>Hamilton
DSN IA Test Team
Joint Interoperability Test Command
Ft. Huachuca, Az.
Desk: 520-538-2588
Cell: 520-236-2390

Classification: UNCLASSIFIED
Caveats: NONE

I would say look at the wxPython demo, it will give you a quick overview
of the miracles, which can be achieved with wxPython. But as long as you
don't give more information about the command line only program, it is
hard to give direction of feedback.

Stani

···

--

Jender, Raymond C CTR DISA JITC wrote:

Classification: UNCLASSIFIED
Caveats: NONE

Hi all!

I'm brand new to the Python programming language.
I have done a little basic (The Basic programming language)
programming before.

I have this Python program that was released to the public
via GNU license. It is a command line only program.
There are a couple of edits that need to be done within the
program before running it.

I would like to build a GUI for it.

Any suggestion on how I should start?

Thanks,

Ray

Raymond C. Jender
Booz>Allen>Hamilton
DSN IA Test Team
Joint Interoperability Test Command
Ft. Huachuca, Az.
Desk: 520-538-2588
Cell: 520-236-2390

Classification: UNCLASSIFIED
Caveats: NONE

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Classification: UNCLASSIFIED
Caveats: NONE

Thanks for the quick reply.
The program is lldpfuzzer and can be found here:
http://www.cs.utexas.edu/~jhol/lldpfuzzer.html

You will see that the program requires you to edit the source
to change the test you want to run. Also, it would be neat
to be able to use the GUI to create new tests sort of on the fly.

Thanks,

Ray

Raymond C. Jender
Booz>Allen>Hamilton
DSN IA Test Team
Joint Interoperability Test Command
Ft. Huachuca, Az.
Desk: 520-538-2588
Cell: 520-236-2390

···

-----Original Message-----
From: Stani's Python Editor [mailto:spe.stani.be@gmail.com]
Sent: Friday, June 08, 2007 3:52 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] New to Python.... (UNCLASSIFIED)

I would say look at the wxPython demo, it will give you a quick overview
of the miracles, which can be achieved with wxPython. But as long as you
don't give more information about the command line only program, it is
hard to give direction of feedback.

Stani
--

Jender, Raymond C CTR DISA JITC wrote:

Classification: UNCLASSIFIED
Caveats: NONE

Hi all!

I'm brand new to the Python programming language.
I have done a little basic (The Basic programming language)
programming before.

I have this Python program that was released to the public via GNU
license. It is a command line only program.
There are a couple of edits that need to be done within the program
before running it.

I would like to build a GUI for it.

Any suggestion on how I should start?

Thanks,

Ray

Raymond C. Jender
Booz>Allen>Hamilton
DSN IA Test Team
Joint Interoperability Test Command
Ft. Huachuca, Az.
Desk: 520-538-2588
Cell: 520-236-2390

Classification: UNCLASSIFIED
Caveats: NONE

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Classification: UNCLASSIFIED
Caveats: NONE

Ray,

   There are three major issues here: 1) proper programming paradigms, 2)
learning python well, and 3) learning wxPython.

   Trying to learn the wxPython library without having a good understanding
of object-oriented programming, UI design issues, and event-driven
programming will probably frustrate you severely. BASIC is not a sufficient
background for anything, unfortunately.

   I would start by reading the Python tutorial (on www.python.org), and one
of the introductory Python books. That will give you a good introduction to
the language, programming structure and style, and the object-oriented
implementations of Python. They I would read "wxPython In Action;" the demos
and examples are not sufficient if you don't have a strong programming and
python background. In reality, you'll have an easier time learning python
and the object-oriented paradigms than did those of us with decades of
Fortran, C, and other structured language experience behind us.

   Finally, search with Google for articles on designing user interfaces.
You -- and the users of your applications -- will be much happier if you do
it well the first time. One of the admonitions I used on those reporting to
me in business environments was "If you don't have time to do it right the
first time, when will you find the time to do it over again?" Applies to
programming, too.

Have fun!

Rich

···

On Fri, 8 Jun 2007, Jender, Raymond C CTR DISA JITC wrote:

I'm brand new to the Python programming language. I have done a little
basic (The Basic programming language) programming before.

I have this Python program that was released to the public via GNU
license. It is a command line only program. There are a couple of edits
that need to be done within the program before running it.

I would like to build a GUI for it.

Any suggestion on how I should start?

--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

Hi Ray,

So basically it is about these three items:
- self_iface = "eth0"
Use a wx.TextCtrl. If you can write a python routine to list all the
interfaces, you can use a wx.ChoiceCtrl

- self_mac = "01:23:45:67:89:AB"
Use a wx.lib.masked.TextCtrl()
http://www.wxpython.org/docs/api/wx.lib.masked.textctrl.TextCtrl-class.html

- test_function()
Use a wx.ChoiceCtrl, the list could be:
[attr[5:] for attr in dir(module) if attr[:5]=='test_']

This should be quite straightforward to write manually. Just create a
Dialog with the controls and add a layout method for the Frame (self):

def layout(self):
  sizer = wx.BoxSizer(wx.VERTICAL)
  sizer.Add(...) #for all the three controls
  sizer.Fit(self)
  self.Layout()

I strongly recommend sizers for automatic gui layout.

However you might feel more comfortable with a GUI designer for which
you can use wxGlade or XRCed, both of which ship with SPE:

Good luck,
Stani

···

--

Jender, Raymond C CTR DISA JITC wrote:

Classification: UNCLASSIFIED
Caveats: NONE

Thanks for the quick reply.
The program is lldpfuzzer and can be found here:
http://www.cs.utexas.edu/~jhol/lldpfuzzer.html

You will see that the program requires you to edit the source
to change the test you want to run. Also, it would be neat
to be able to use the GUI to create new tests sort of on the fly.

Thanks,

Ray

Raymond C. Jender
Booz>Allen>Hamilton
DSN IA Test Team
Joint Interoperability Test Command
Ft. Huachuca, Az.
Desk: 520-538-2588
Cell: 520-236-2390

-----Original Message-----
From: Stani's Python Editor [mailto:spe.stani.be@gmail.com]
Sent: Friday, June 08, 2007 3:52 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] New to Python.... (UNCLASSIFIED)

I would say look at the wxPython demo, it will give you a quick overview
of the miracles, which can be achieved with wxPython. But as long as you
don't give more information about the command line only program, it is
hard to give direction of feedback.

Stani
--
http://pythonide.stani.be

Jender, Raymond C CTR DISA JITC wrote:

Classification: UNCLASSIFIED
Caveats: NONE

Hi all!

I'm brand new to the Python programming language.
I have done a little basic (The Basic programming language)
programming before.

I have this Python program that was released to the public via GNU
license. It is a command line only program.
There are a couple of edits that need to be done within the program
before running it.

I would like to build a GUI for it.

Any suggestion on how I should start?

Thanks,

Ray

Raymond C. Jender
Booz>Allen>Hamilton
DSN IA Test Team
Joint Interoperability Test Command
Ft. Huachuca, Az.
Desk: 520-538-2588
Cell: 520-236-2390

Classification: UNCLASSIFIED
Caveats: NONE

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Classification: UNCLASSIFIED
Caveats: NONE

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org