Using tahrpup I've produced a boa constructor, Dev-BoaTP6.0.2.sfs , file and have made this available at :
http://www.smokey01.com/
you load this as you do any other .sfs file .
To help you in the next step I've produced a sample application , with extra
comments , for clarity .
To again use Boa constructor upon these files you'll need to load both into
the editor .
Note ; the Dev-BoaTP6.0.2.sfs file remains valid for updated versions of tahrpup .
I'm using ---------- to indicate the start and end of the files , don't copy
this into your code files.
----------------------------------------- Frame1.py ---------------------------------------------
#Boa:Frame:Frame1
# Use this to select a particular version of wxgtk ,
# necessary even if you only have one version installed.
# wxversion.select('3.0') might be a possibility .
#
import wxversion
wxversion.select('2.8')
import wx
def create(parent):
return Frame1(parent)
[wxID_FRAME1, wxID_FRAME1PANEL1,
] = [wx.NewId() for _init_ctrls in range(2)]
class Frame1(wx.Frame):
def _init_ctrls(self, prnt):
# generated method, don't edit
wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt,
pos=wx.Point(296, 187), size=wx.Size(693, 445),
style=wx.DEFAULT_FRAME_STYLE, title='Frame1')
self.SetClientSize(wx.Size(693, 445))
self.panel1 = wx.Panel(id=wxID_FRAME1PANEL1, name='panel1', parent=self,
pos=wx.Point(0, 0), size=wx.Size(693, 445),
style=wx.TAB_TRAVERSAL)
self.panel1.SetBackgroundColour(wx.Colour(86, 157, 66))
self.panel1.SetForegroundColour(wx.Colour(239, 225, 25))
def __init__(self, parent):
self._init_ctrls(parent)
#
# Boa constructor , right side , editor , py file , edit ; add module runner .
#
if __name__ == '__main__':
app = wx.PySimpleApp()
frame = create(None)
frame.Show()
app.MainLoop()
---------------------------------------------------------------------------------------------------
----------------------------------------App1.py -----------------------------------------
#!/usr/bin/env python
#Boa:App:BoaApp
# Use this to select a particular version of wxgtk ,
# necessary even if you only have one version installed.
# wxversion.select('3.0') might be a possibility .
#
import wxversion
wxversion.select('2.8')
import wx
import Frame1
modules ={'Frame1': [1, 'Main frame of Application', u'Frame1.py']}
class BoaApp(wx.App):
def OnInit(self):
self.main = Frame1.create(None)
self.main.Show()
self.SetTopWindow(self.main)
return True
def main():
application = BoaApp(0)
application.MainLoop()
if __name__ == '__main__':
main()
if __name__ == '__main__':
pass # add a call to run your script here
-------------------------------------------------------------------------------------------------
Boa Constructor and tahrpup (Various methods)
Ah. Now we know. Thank you, kind sir.drunkjedi wrote: While installing Playonlinux, I had to install wxpython (which also installed
wxwidgets as a dependency) for the GUI.
This is not related to thread but when I searched for info on wxpython, I read
that Boa Constructor is [a] tool to make GUI apps using python-wxpython.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)