Boa Constructor and tahrpup (Various methods)

Puppy related raves and general interest that doesn't fit anywhere else
Post Reply
Message
Author
edmont
Posts: 51
Joined: Mon 19 Nov 2012, 07:30

Boa Constructor and tahrpup (Various methods)

#1 Post by edmont »

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


-------------------------------------------------------------------------------------------------

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

I have no idea what this does. Should it be in Repositories?

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#3 Post by musher0 »

Me neither... Sounds maybe like a protocol to catch a big snake and send
it back to the zoo? (I know, I'm not being nice... Sorry!)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#4 Post by drunkjedi »

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 tool to make GUI apps using python-wxpython.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#5 Post by musher0 »

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.
Ah. Now we know. Thank you, kind sir.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply