python - Building standalone desktop GUI app using wxpython -


i have created python script using mechanize , beautifulsoup, login website , hardcoded credentials , url in script. worked fine.

my requirement build standalone desktop gui app using wxpython or other on user can input url , credentials can call python script.

i started learning wxpython, not sure how proceed on this.

can brief me prototype requirement , guide me in building gui.

gui requires. 3 input textboxes 1 submit button invokes python script

thanks

wxpython has widgets need. highly recommend downloading wxpython demo package see how work. want @ following elements:

  • wx.textctrl
  • wx.button
  • wx.boxsizer (optional, recommended)

the boxsizer allow resize application , have widgets adjust size accordingly. there many tutorials available demonstrate these concepts friendly wxpython google group , irc channel.

after entering text in text controls, want have bound button widget event handler call mechanize or beautifulsoup or whatever. can data validation in button event before using data if want to.

if target audience isn't going have python installed, need how create apks , exes. there many python packages can such as:

  • py2exe
  • py2app
  • pyinstaller
  • briefcase
  • cx_freeze

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -