Picon
Favicon

Combo box

Hello at all,
Probably have you read the same request in the boa forum.
But i think that i'm wery stupid.
I try to put some items in my combobox I use self.comboBox1.AppendItems(['com1', 'com2'])

But when i push on the combo no items show.
Can you help me?

Thanks Luca

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
Werner F. Bruhin | 1 Mar 2006 15:01
Picon
Favicon

ComboBox sample

Hi Luca,

Attached is a small sample with a maskedcombobox and a combobox, one 
uses append and the other appenditems.

Hope this helps
Werner
Attachment (ComboBox.py): application/x-python, 3526 bytes
F.A.Pinkse | 2 Mar 2006 21:57
Picon
Favicon

Window blanks on mouse click

Hi All,

It may be the wrong maillist but, who can help me out of this problem.

I want to display my webcam overlayed with a target cross, to position
materials under my milling machine.
I use VideoCapture to get the webcam data, I have a Frame with a Window.
If I run this I can see pictures from my webcam, but as soon as I click
outside or on the Frame the window goes to white.
May be the problem is in the ...Update() and Refresh() because in this
setup it is the only way in seeing something.
and must I do realy something else but what???? I came to this idea when
I did a debug trace and this said in the
    def Update(*args, **kwargs):
        return _core_.Window_Update(*args, **kwargs)
PaintEventPtr object has no attribute this.

#Boa:Frame:Frame1

import wx
from VideoCapture import *

cam=Device(devnum=0)

def create(parent):
    return Frame1(parent)

[wxID_FRAME1, wxID_FRAME1TESTPANEL,
] = [wx.NewId() for _init_ctrls in range(2)]

(Continue reading)

Poljack Me | 7 Mar 2006 06:38
Favicon

Boa

hi to all,

 

    i was trying to run boa in a System running Redhat Entrprise 4 AS. i am getting an error.

here is the stack as executed.

[root <at> cti-ibm-linux boa-constructor]# python Boa.py
Starting Boa Constructor v0.4.4
importing wxPython
reading user preferences
Traceback (most recent call last):
  File "Boa.py", line 256, in ?
    import Preferences, Utils
  File "/usr/local/lib/python2.4/site-packages/boa-constructor/Preferences.py", line 137, in ?
    execfile(file)
  File "/root/.boa-constructor/prefs.rc.py", line 7, in ?
    import wx.stc
  File "/usr/local/lib/python2.4/site-packages/wx/stc.py", line 10, in ?
    import _stc
ImportError: No module named _stc
[root <at> cti-ibm-linux boa-constructor]#

anybody there who can help me...? thanks

poljack jackal


-- --

___________________________________________________
Play 100s of games for FREE! http://games.mail.com/

Werner F. Bruhin | 7 Mar 2006 12:23
Picon
Favicon

Re: Boa

Hi,

Poljack Me wrote:
> hi to all,
> 
>  
> 
>     i was trying to run boa in a System running Redhat Entrprise 4 AS. i 
> am getting an error.
> 
> here is the stack as executed.
> 
> [root <at> cti-ibm-linux boa-constructor]# python Boa.py
> Starting Boa Constructor v0.4.4
> importing wxPython
> reading user preferences
> Traceback (most recent call last):
>   File "Boa.py", line 256, in ?
>     import Preferences, Utils
>   File 
> "/usr/local/lib/python2.4/site-packages/boa-constructor/Preferences.py", 
> line 137, in ?
>     execfile(file)
>   File "/root/.boa-constructor/prefs.rc.py", line 7, in ?
>     import wx.stc
>   File "/usr/local/lib/python2.4/site-packages/wx/stc.py", line 10, in ?
>     import _stc
> ImportError: No module named _stc
> [root <at> cti-ibm-linux boa-constructor]#
> 
> anybody there who can help me...? thanks
stc is part of wxPython, you obviously have stc.py as the "import 
wx.stc" works but you should also have "_stc.pyd" in "site-packages/wx"? 
  If not you have an wxPython install problem, try reinstalling it.

Werner

> 
> poljack jackal
> 
> 
> -- 
> 
> ___________________________________________________
> Play 100s of games for FREE! http://games.mail.com/
> 

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Bandung | 8 Mar 2006 12:46

Change the Port That Boa uses to access SSH

To reduce the hits on our sites from script kiddies looking for open
SSH ports to hack, we change the port number.  
This creates a problem for our Boa Constructor setup since it assumes that SSHD
is running on the usual port (22). How do I tell Boa that the port is not 22?

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Bandung | 9 Mar 2006 12:55

Telling Boa Constructor What Port SSH Uses

To reduce the hits on our sites due to script kiddies trying to crack
port 22 for SSH. We change our SSH port number. We need a way therefore to tell
Boa not to try port 22 for SSH.  How can we do that?

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Bandung | 9 Mar 2006 13:12

Re: Boa

Poljack Me <poljack <at> ...> writes:

> 
> 
> hi to all,
>  
>     i was trying to run boa in a System running Redhat Entrprise 4 AS. i am
getting an error.
> here is the stack as executed.
> [root <at> cti-ibm-linux boa-constructor]# python Boa.pyStarting Boa
Constructor v0.4.4importing wxPythonreading user preferencesTraceback (most
recent call last):  File "Boa.py", line 256, in ?    import Preferences, Utils 
File "/usr/local/lib/python2.4/site-packages/boa-constructor/Preferences.py",
line 137, in ?    execfile(file)  File "/root/.boa-constructor/prefs.rc.py",
line 7, in ?    import wx.stc  File
"/usr/local/lib/python2.4/site-packages/wx/stc.py", line 10, in ?    import
_stcImportError: No module named _stc[root <at> cti-ibm-linux boa-constructor]#
> anybody there who can help me...? thanks
> poljack jackal
> 
> 

I strongly doubt that you will be able to get Boa working within Redhat
Enterprise  because of incompatabilities between the GTK version required by
wxPython and the GTK version required by the rest of RHEL4.  We worked at this
for a month and concluded that it wasn't worth breaking all of the other tools
just to get Boa up and running.  You can attempt to compile all of the
components necessary to get the latest versions of wxPython running on RHEL but
in the end, you will discover that there are too many libraries missing.  And
when you do force those libraries to install, you break RHEL's other programs -
like all of your gnome gui apps.

As a result, we switched to Fedora 4 for our development machines.  (still use
RHEL for our production servers, we just don't develop on them any more). 

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Riaan Booysen | 10 Mar 2006 10:19
Picon

Re: Window blanks on mouse click

Hi Frans,

I don't know what is going wrong in your code, but it's not
a good idea to have a 'while 1' loop in a GUI app that does
not end (GUI apps need to process messages and I'm not even
sure when MainLoop is called).

Consider using a wx.Timer to do this.

Cheers,
Riaan.

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Riaan Booysen | 10 Mar 2006 10:19
Picon

Re: Telling Boa Constructor What Port SSH Uses

Hi Bandung,

Bandung wrote:
> To reduce the hits on our sites due to script kiddies trying to crack
> port 22 for SSH. We change our SSH port number. We need a way therefore to tell
> Boa not to try port 22 for SSH.  How can we do that?

This is not a configurable option at the moment. If you are willing to
edit the Boa Python source you may specify a port parameter to the
ssh command-line call in Explorers/SSHExplorer.py line 125.

Cheers,
Riaan.

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Gmane