Skip to Content
Author's profile photo Alvaro Tejada Galindo

Tasting the mix of Python and SAP – Volume 3

Hello and welcome back to this little corner of Scripting Languages fun -:)

 

Today, we’re going to see how can we use wxPython and SAP to make an SE16 emulation.

 

So, what’s wxPython? It’s a Python wrapper of the C++’s wxWidgets that allows us to create rich UI applications.

 

For this blog I was tempted to use Tkinter but gotta admit that I like wxPython more…as I have already used it in my Ruby projects. Anyway in Ruby it was a little bit easier than in Python -:P

 

Enough talk, let’s go to the source code…(That could fit nice on a T-Shirt, right?)

 

Again, and as always in my Python/SAP projects…I used YAML to host the SAP connections parameters.

 

sap.yml

 

 

 

Now, the images:

 

 

So basically, what we have here is a Login screen with the Username and Password and a connection button. When we connect to SAP, then the window dissapeared and a new window pops out. This new windows ask us for a table name and displays a grid containing all the information.

 

See ya next time -;)

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Steve Oldner
      Steve Oldner
      Haven't used wx, this make me want to try it.  What version Python?
      Author's profile photo Alvaro Tejada Galindo
      Alvaro Tejada Galindo
      Blog Post Author
      Steve:

      I'm using the same version as before -:) Python 2.6 mostly because the only Python:RFC that I found compiled for Windows as an installer was for that version -;)
      BTW, I'm glad you enjoyed my blog -;)

      Greetings,
      Blag.