help with wxGauge

I am trying to use the wxGauge control in a xrc dialog box as you can see
from the attached example. Running this code sample gives me a type error.
Any suggestions?

Greg

begin 666 Gauge.xrc
M/#]X;6P@=F5R<VEO;CTB,2XP(B _/@T*/')E<V]U<F-E/@T*(" \;V)J96-T
M(&-L87-S/2)W>$1I86QO9R(@;F%M93TB1$E!3$]',2(^#0H@(" @/'1I=&QE
M/D=A=6=E('1E<W0\+W1I=&QE/@T*(" @(#QO8FIE8W0@8VQA<W,](G=X0F]X
M4VEZ97(B/@T*(" @(" @/&]R:65N=#YW>%9%4E1)0T%,/"]O<FEE;G0^#0H@
M(" @(" \;V)J96-T(&-L87-S/2)S:7IE<FET96TB/@T*(" @(" @(" \;V)J
M96-T(&-L87-S/2)W>$=A=6=E(B!N86UE/2))1%]'055'12(^#0H@(" @(" @
M(" @/')A;F=E/C$P,#PO<F%N9V4^#0H@(" @(" @(" @/'-I>F4^,C P+#(P
M/"]S:7IE/@T*(" @(" @(" \+V]B:F5C=#X-"B @(" @(" @/&9L86<^=WA!
M3$P\+V9L86<^#0H@(" @(" @(#QB;W)D97(^,3 \+V)O<F1E<CX-"B @(" @
M(#PO;V)J96-T/@T*(" @(" @/&]B:F5C="!C;&%S<STB<VEZ97)I=&5M(CX-
M"B @(" @(" @/&]B:F5C="!C;&%S<STB=WA"=71T;VXB(&YA;64](DE$7T]+
M(CX-"B @(" @(" @(" \;&%B96P^3TL\+VQA8F5L/@T*(" @(" @(" \+V]B
M:F5C=#X-"B @(" @(#PO;V)J96-T/@T*(" @(#PO;V)J96-T/@T*(" \+V]B
2:F5C=#X-"CPO<F5S;W5R8V4^
`
end

begin 666 gauge.py
M(R$O8FEN+W!Y=&AO;@T*#0IF<F]M(" @=WA0>71H;VXN=W@@(" @(" @("!I
M;7!O<G0@*@T*9G)O;2 @('=X4'ET:&]N+GAR8R @(" @(" @:6UP;W)T("H-
M"@T*8VQA<W,@<')O9U]D:6%L;V<H=WA$:6%L;V<I.@T*(" @9&5F(%]?:6YI
M=%]?*'-E;&8L(&ED*3H-"B @(" @('-E;&8N<F5S(#T@=WA8;6Q297-O=7)C
M92@G1V%U9V4N>')C)RD-"B @(" @('-E;&8N9&QG(#T@<V5L9BYR97,N3&]A
M9$1I86QO9RAI9"P@(D1)04Q/1S$B*0T*(" @(" @15947T)55%1/3BAS96QF
M+F1L9RP@6%)#240H(DE$7T]+(BDL('-E;&8N3VY/2RD-"B @(" @('-E;&8N
M9&QG+E-H;W=-;V1A;"@I#0H-"B @(&1E9B!/;D]+*'-E;&8L979T*3H-"B @
M(" @(&-T;" ](%A20T-44DPH<V5L9BYD;&<L("))1%]'055'12(I#0H@(" @
M("!P<FEN="!C=&P-"B @(" @(&-T;"Y3971686QU92@U,"D-"B @(" @('-E
M;&8N9&QG+D1E<W1R;WDH*0T*#0IC;&%S<R!M86EN7W=I;F1O=RAW>$9R86UE
M*3H-"B @(&1E9B!?7VEN:71?7RAS96QF+"!P87)E;G0L(&ED*3H-"B @(" @
M('=X1G)A;64N7U]I;FET7U\H<V5L9BP@<&%R96YT+" M,2P@)R<L('-I>F4@
M/2 H-# P+" S,# I+ T*(" @(" @(" @(" @(" @(" @(" @("!S='EL93UW

$1%1D%53%1?1E)!345?4U193$5\=WA.3U]&54Q,7U)%4$%)3E1?3TY?4D53

M25I%*0T*#0H@(" @("!S96QF+E-H;W<H=')U92D-"@T*(" @(" @<')O9U]D
M:6%L;V<H<V5L9BD-"@T*8VQA<W,@07!P*'=X07!P*3H-"B @(&1E9B!/;DEN
M:70H<V5L9BDZ#0H@(" @(" G)R='970@<W1R:6YG(&%N9"!D:7-P;&%Y(&ET
M+B<G)PT*(" @(" @=WA);FET06QL26UA9V5(86YD;&5R<R@I#0H@(" @("!F
M<F%M92 ](&UA:6Y?=VEN9&]W*$YO;F4L("TQ*0T*(" @(" @<V5L9BY39714
M;W!7:6YD;W<H9G)A;64I#0H@(" @("!R971U<FX@=')U90T*#0IA<' @/2!!
7<' H,"D-"F%P<"Y-86EN3&]O<"@I#0H`
`
end

I am trying to use the wxGauge control in a xrc dialog box as you can see
from the attached example. Running this code sample gives me a type error.
Any suggestions?

I think it's not a 'type error'
It's a message about type of object.
You just printed ctl in you OnOK handler. :slight_smile:

      ctl = XRCCTRL(self.dlg, "ID_GAUGE")
      print ctl
      ^^^^^^^^^^^^^
Remove it and you won't see 'type error' again :wink:

···

Greg

--
Igor.
                         mailto:igor@tyumbit.ru

The print line was just to show the type of ctl and to show that it is
different than the type reported in the error which occurs when the
following line is executed. If you want, remove the print line from the
example and you will see the error I am trying to solve.

Greg

···

----- Original Message -----
From: "Igor Prischepoff" <igor@tyumbit.ru>
Newsgroups: gmane.comp.python.wxpython
Sent: Tuesday, October 07, 2003 11:36 AM
Subject: Re: help with wxGauge

I am trying to use the wxGauge control in a xrc dialog box as you can see
from the attached example. Running this code sample gives me a type

error.

Any suggestions?

I think it's not a 'type error'
It's a message about type of object.
You just printed ctl in you OnOK handler. :slight_smile:

      ctl = XRCCTRL(self.dlg, "ID_GAUGE")
      print ctl
      ^^^^^^^^^^^^^
Remove it and you won't see 'type error' again :wink:

Greg

--
Igor.
                         mailto:igor@tyumbit.ru

The print line was just to show the type of ctl and to show that it is
different than the type reported in the error which occurs when the
following line is executed. If you want, remove the print line from the
example and you will see the error I am trying to solve.

Greg

Your sample code runs silently for me.
No warnings , no errors, no crash.
win2k , python 2.2 , wxPython 2.4.2.4

···

--
Igor.
                         mailto:igor@tyumbit.ru

Thanks, I downloaded the latest version. I was running 2.4.0

···

----- Original Message -----
From: "Igor Prischepoff" <igor@tyumbit.ru>
Newsgroups: gmane.comp.python.wxpython
Sent: Tuesday, October 07, 2003 12:41 PM
Subject: Re: Re: help with wxGauge

The print line was just to show the type of ctl and to show that it is
different than the type reported in the error which occurs when the
following line is executed. If you want, remove the print line from the
example and you will see the error I am trying to solve.

Greg

Your sample code runs silently for me.
No warnings , no errors, no crash.
win2k , python 2.2 , wxPython 2.4.2.4
--
Igor.
                         mailto:igor@tyumbit.ru