...hello!!!...I need some help in python...

..Im new to Python programming and I need a window form builder that can script it into a python program....can you please give me suggestions.???..I have tried also searching on google but Im afraid the results might not help me well....unlike asking here at least I know I can depend on your answers...

Recommended Answers

All 9 Replies

Are you looking for something like Visual Studios by Microsoft so you have a GUI for building other GUIs for local apps. Or do you want something like Dreamweaver and build forms for websites?

Pyhon has Tkinter,wxpython,PyQt(pyside),PyGTK that you can make GUI with.
Also ironpython,jython can be used to make GUI.

You say window form builder it is used by Visual Studios to make GUI as mention by Theh B.
Just same can you do with GUI-toolkit mention above.
And better those GUI-toolkit are crossplatform,something windows form(CLR) are not.

There are very good sticky thread you can look at here.
http://www.daniweb.com/software-development/python/threads/191210
http://www.daniweb.com/software-development/python/threads/128350

You should learn basic python first,GUI with python is not so hard to learn.
But if your python knowledge is not so good,then to make GUI becomes a lot harder to learn.

Those crossplatfrom GUI-toolkit mention above are used by many program you may use or have heard of.
Just a couple of example is.
http://www.videolan.org/vlc/
http://www.dropbox.com/

If you want to make websites then you look at this.
http://wiki.python.org/moin/WebFrameworks

PyQT has commercial form builder for which you have to pay. Pyside which is open source implementation of QT like PyQT is new and yet to have a form builder. I guess it'll take time.

You can use the PyQT Designer if you don't develop commercial software.

vegaseat,

Thank you.
That is what riverbank tell me when they checked it.
If it works for them then it must be OK sort of closed mindedness.
I have tried 2 windows machines and a linux one with 5 different browsers. Tried with anti-virus. firewalls on/off. Each time the download looks like it is starting but no bytes comes down the wire. Every other site I download from starts and finishes the download in short order. Only common link my side is an ISP problem but I have repeatedly tried over the last 3 weeks. Perhaps riverbank has blocked more than one download request at a time ie they have not cancelled the very first failed one. Never happened to me before.

Here is an example of a PySide program using the drag-drop Designer that comes with it (similar to ene's example) ...

'''
run_combobox2.py

a simple loader for .ui XML files generated with PySide Designer
the Designer's XML file was saved as "combobox2.ui"

contains a QMainWindow form with a QComboBox and a QLabel
select the QComboBox and use the Desiger's "Edit Signals/Slots" (F4) 
to connect the QComboBox signal via currentIndexChanged(QString)
to the QLabel slot via setText(QString) 

tested with PySide474 and Python32
'''

from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtUiTools import QUiLoader

# create the application
app = QApplication([])

# create the ui loader
loader = QUiLoader()
# and load the form's ui file
widget = loader.load("combobox2.ui")
widget.show()

# create the combo and label objects
# (for correct names check the .ui file)
combo = widget.findChild(QComboBox, 'comboBox')
label = widget.findChild(QLabel, 'label')

# load the combo box with some string items
pasta_list = ['Spaghetti', 'Fettuccine', 'Ziti', 'Penne', 'Lasagne']
for pasta in pasta_list:
    combo.addItem(pasta)

# execute the application
app.exec_()

... and here is the combobox2.ui XML file the Designer created ...

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>400</width>
    <height>150</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>MainWindow</string>
  </property>
  <widget class="QWidget" name="centralwidget">
   <widget class="QComboBox" name="comboBox">
    <property name="geometry">
     <rect>
      <x>10</x>
      <y>20</y>
      <width>69</width>
      <height>22</height>
     </rect>
    </property>
   </widget>
   <widget class="QLabel" name="label">
    <property name="geometry">
     <rect>
      <x>120</x>
      <y>20</y>
      <width>46</width>
      <height>13</height>
     </rect>
    </property>
    <property name="text">
     <string>TextLabel</string>
    </property>
   </widget>
  </widget>
  <widget class="QMenuBar" name="menubar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>400</width>
     <height>21</height>
    </rect>
   </property>
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
 </widget>
 <resources/>
 <connections>
  <connection>
   <sender>comboBox</sender>
   <signal>currentIndexChanged(QString)</signal>
   <receiver>label</receiver>
   <slot>setText(QString)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>43</x>
     <y>54</y>
    </hint>
    <hint type="destinationlabel">
     <x>147</x>
     <y>49</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.