954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need Help with coding of Python Gui using Boa Constuctor

hi,
Am new to Daniweb. Name is Nik.

Am currently doing a project in Python to create a visualization tool for OSSEC HIDS. I created the GUI using Boa Constructor which works with wx.python. But now i am stuck as to how to retrieve data from OSSEC and show them on my tool.
IF u know or have done similar projects, help would be much appreciated. I would gladly send u a copy of my project so as to work in partnership. Help would be appreciated and mentioned in my thesis and also on the tool.
the project is designed to replace/support the existing Web based Gui tool that OSSEC use.

Pls contact asap.

thanks
Nik

niks1234
Newbie Poster
3 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

No mindreaders here, so let us know what data stream looks like.

bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184
 
No mindreaders here, so let us know what data stream looks like.

HI,
thanx for replyin...the main prob tht i encountered is wat to write.

so heres the situation... i need to print data frm a file on to wx.ListCtrl and wx.TreeCtrl. Both have separate files. I am also attaching a picture showing how or how similar the display sud be. I will also attach my tool as well.
hope u can help me out, which wud be much appreciated.

thanx in adv.

nik

Attachments event.JPG 70.16KB main.JPG 38.03KB Shadow.zip (235.29KB)
niks1234
Newbie Poster
3 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

Here's one method to open and read a file:

f = open( 'myfile.txt', 'r' ) # 'r' is for Read Mode
lines = f.readlines()
f.close()

# Now lines contains a list of each line of the file contents
for eachline in lines:
   # Add line to wx.*ctrl
jlm699
Veteran Poster
1,112 posts since Jul 2008
Reputation Points: 355
Solved Threads: 292
 

Here's one method to open and read a file:

f = open( 'myfile.txt', 'r' ) # 'r' is for Read Mode
lines = f.readlines()
f.close()

# Now lines contains a list of each line of the file contents
for eachline in lines:
   # Add line to wx.*ctrl

Thanx,

but am looking to display data from the file onto my listctrl box in the toll. run the program and then u can c. along with it, 2 treectrl list are also there which need to be displayed as well.
sample data can be obtained from my attachments.

thanx
nik

niks1234
Newbie Poster
3 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You