From: Tony B. <bie...@ho...> - 2003-04-19 16:30:16
|
Can't seem to capture output from a command line execution. Here's what I'm trying: sub OnIORedir { my $this = shift; $ubhdir = "/mnt/data/stable3/"; $ubhasm = "ubhasm"; $ubhdb = "ubhdb"; $ubhcatalog = "ubhcatalog"; $ubh = "ubh"; chdir $ubhdir; my $process = Wx::Process->new( $this ); $this->{PROCESS} = $process; $process->Redirect; Wx::ExecuteArgs( [$^X, main::filename( $ubhdir . $ubhasm )], 0, $process ); while( $process->IsInputAvailable ) { my $stream = $process->GetInputStream; sysread($stream, $buffer, 1); my $value = <$buffer>; $this->output->AppendText( $value ) if defined $value; Wx::LogMessage( $value ) if defined $value; # sysread($stream , $buffer , 1) ; # print "<$buffer>\n" ; sleep(1); } } Any thoughts? _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail |
From: <GPo...@co...> - 2004-11-05 16:30:01
|
Curios what would be the lines of code to set a value for a control built in XRC I can load up the panel but how then to set the value for my wxTextCtrl $mainpanel = $self->{'xr'}->LoadPanel($self, 'panel'); <resource> <object class="wxPanel" name="panel"> <style>wxSUNKEN_BORDER</style> <object class="wxStaticText"> <label>Table</label> <pos>10,10</pos> <size>100,15</size> </object> <object class="wxTextCtrl" name="FirstArg"> <pos>10,25</pos> <size>120,20</size> </object> </object> </resource> I aplogize, it escapes me in the documentation and demo. Any help would be appreciated. Thanks Greg |
From: LOGGOS T. <lo...@lo...> - 2005-08-01 21:30:19
|
LOGGOS TI - Ano 15 |
From: <dbs...@ju...> - 2005-10-07 23:18:55
|
I am using Perl V5.8.4 and Wxperl 0.23 Not sure how to change an icon for a wxListCtrl, would appreciate any help. the following is snips of my code $this->{IMAGELIST} = Wx::ImageList->new( 16, 16, 1 ); $this->{IMAGELIST}->Add( Wx::Bitmap->new( "bitmaps/CheckBox.ico", wxBITMAP_TYPE_ICO )); $this->{IMAGELIST}->Add( Wx::Bitmap->new( "bitmaps/CheckBoxMarked.ico", wxBITMAP_TYPE_ICO )); ... while (<$file> ) { my @user = split (/:/,$_); my $idx = $list->InsertImageStringItem( $i, "", 0 ); $list->SetItem( $idx, 0, split (/:/,$user[0]) ); $list->SetItem( $idx, 1, "*empty*" ); $list->SetItem( $idx, 2, "*" ); ... #this will use the CheckBox.ico in the first column of all the items (rows). # now I want to change the icon to the CheckBoxMarked.ico for item 0 (row 0). ......... $this->{IMAGELIST}->Replace(0, "bitmaps/CheckBoxMarked.ico"); # this causes the following error #unable to resolve overloaded method for Wx::ImageList::Replace at....................... Dean |
From: Mattia B. <mat...@li...> - 2005-10-08 14:51:35
|
On Fri, 7 Oct 2005 17:17:49 -0600 dbs...@ju... wrote: Hi, > I am using Perl V5.8.4 and Wxperl 0.23 > Not sure how to change an icon for a wxListCtrl, would appreciate any > help. What about $listctrl->SetItemImage( $item, $imageIndex )? $imageIndex is the index of the new image in the imagelist. HTH Mattia |
From: Fabrice V. <fab...@op...> - 2005-11-10 15:19:48
|
From: Henry H S. <co...@gm...> - 2005-12-18 06:16:21
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi wxperl-users, I am a wxPerl and Perl newbie in general. I'm wondering if there's tutorial about how to use relative positioning of the GUI objects. Until now, I have to manually specify the coordinates. Is there a better way to simplify lay-outing in wxPerl ? My wxPerl version is 0.26 on Mac OS X 10.4. Thank you. Henry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) iD8DBQFDpP6iWA9ApS+gBDwRAsXUAKDUrAU/p5ysUAOrm8R7oiuUBlTitQCgzBfE 5DbfJuMVYzCNzJINMkXWTQQ= =9WXZ -----END PGP SIGNATURE----- |
From: John R. <jr...@ce...> - 2005-12-18 15:45:20
|
You want to use the sizer classes. There's a topic overview on sizers in the wxWdigets documentation, and wxPerl examples in the wxPerl demo found in the source directory. Regards, John Ralls On Dec 17, 2005, at 10:15 PM, Henry H Santoso wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi wxperl-users, > > I am a wxPerl and Perl newbie in general. I'm wondering if there's > tutorial about how to use relative positioning of the GUI objects. > Until now, I have to manually specify the coordinates. Is there a > better way to simplify lay-outing in wxPerl ? My wxPerl version is > 0.26 on Mac OS X 10.4. > > Thank you. > Henry > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (Darwin) > > iD8DBQFDpP6iWA9ApS+gBDwRAsXUAKDUrAU/p5ysUAOrm8R7oiuUBlTitQCgzBfE > 5DbfJuMVYzCNzJINMkXWTQQ= > =9WXZ > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users |
From: Henry H S. <co...@gm...> - 2005-12-19 16:19:01
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thank you Peter and John. I shall have a look at them. Henry On 18 Dec 2005, at 11:44 PM, John Ralls wrote: > You want to use the sizer classes. There's a topic overview on > sizers in the wxWdigets documentation, and wxPerl examples in the > wxPerl demo found in the source directory. > > Regards, > John Ralls > > On Dec 17, 2005, at 10:15 PM, Henry H Santoso wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi wxperl-users, >> >> I am a wxPerl and Perl newbie in general. I'm wondering if there's >> tutorial about how to use relative positioning of the GUI objects. >> Until now, I have to manually specify the coordinates. Is there a >> better way to simplify lay-outing in wxPerl ? My wxPerl version is >> 0.26 on Mac OS X 10.4. >> >> Thank you. >> Henry >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.2 (Darwin) >> >> iD8DBQFDpP6iWA9ApS+gBDwRAsXUAKDUrAU/p5ysUAOrm8R7oiuUBlTitQCgzBfE >> 5DbfJuMVYzCNzJINMkXWTQQ= >> =9WXZ >> -----END PGP SIGNATURE----- >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through >> log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD >> SPLUNK! >> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >> _______________________________________________ >> wxperl-users mailing list >> wxp...@li... >> https://lists.sourceforge.net/lists/listinfo/wxperl-users > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) iD8DBQFDpt14WA9ApS+gBDwRArf0AJ95v12N/D/fg9/zTkOFwp1how6YGACeJroP 62cyiUS0I1Oovii3UV/VTv0= =jprJ -----END PGP SIGNATURE----- |
From: Vladimir O. <ca...@ma...> - 2006-12-06 16:17:44
|
where can I get PPM binary packages of wxPerl 0.64 for MSW? thanks |
From: Mark D. <mar...@zn...> - 2006-12-06 19:02:51
|
Hi, There are some unofficial PPMs for Win32 at http://www.gigi.co.uk/wxperl/ppm.html Regards Mark Vladimir Ontikov wrote: > where can I get PPM binary packages of wxPerl 0.64 for MSW? thanks > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users |
From: Sandor M. <s...@nd...> - 2007-03-19 21:05:40
|
Hi, I'm trying to use wxFRAME_EX_METAL style with no success (Mac OS X 10.4.9, wxMac 2.6.3 wxPerl 0.57). Is it possible? Do I have to prepare it while compiling wxWidgets/wxPerl? Thanks in advance! Sandor |
From: Mattia B. <mat...@li...> - 2007-03-20 05:35:43
|
On Mon, 19 Mar 2007 22:05:25 +0100 Sandor Miskey <s...@nd...> wrote: Hi, > I'm trying to use wxFRAME_EX_METAL style with no success (Mac OS X > 10.4.9, wxMac 2.6.3 > wxPerl 0.57). Is it possible? Do I have to prepare it while compiling > wxWidgets/wxPerl? It should be avilable with wxWidgets 2.6.0 and above. Which error do you get? Regards Mattia |
From: Sandor M. <s...@nd...> - 2007-06-22 15:14:14
Attachments:
metallic_test.pl
|
Hi, On Mar 20, 2007, at 6:35 AM, Mattia Barbon wrote: > Sandor Miskey <s...@nd...> wrote: > >> I'm trying to use wxFRAME_EX_METAL style with no success (Mac OS X >> 10.4.9, wxMac 2.6.3 >> wxPerl 0.57). Is it possible? Do I have to prepare it while compiling >> wxWidgets/wxPerl? > > It should be avilable with wxWidgets 2.6.0 and above. Which error > do you get? There is no any error message, but the opening window does not seem metallic. Wx configured with the following options: ../configure --prefix=/Applications/iBaraka.app/ Root \ --enable-unicode --enable-splitter --enable- datepick \ --with-mac --with-libjpeg --with-libpng $ ./wx-config --version_full 2.6.3.1 $ ./wx-config --libs -L/Applications/iBaraka.app/Root/lib -framework QuickTime - framework IOKit -framework Carbon -framework Cocoa -framework System -lwx_macu_xrc-2.6 -lwx_macu_qa-2.6 -lwx_macu_html-2.6 - lwx_macu_adv-2.6 -lwx_macu_core-2.6 -lwx_base_carbonu_xml-2.6 - lwx_base_carbonu_net-2.6 -lwx_base_carbonu-2.6 And wxPerl (0.57) options are: --disable-grid --disable-stc --wx- unicode --wx-toolkit=mac The test script is attached. Thank you, regards; Sandor Miskey |
From: - 2007-06-19 22:33:19
|
by alz34.internetdsl.tpnet.pl with SMTP; Received: (qmail 5419 by uid 565); Wed, 20 Jun 2007 12:33:10 +0100 Message-Id: <200...@al...> To: <wxp...@li...> Subject: RE: query From: Ju...@me... MIME-Version: 1.0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit <style> Jetzt ist es offiziell: Christoph Metzelder wird in der kommenden Saison bei Real Madrid spielen. Jetzt wird spekuliert, der Nationalspieler in Spanien werde mit seinem Trainer deutsch sprechen - laut einer spanischen Zeitung übernimmt Bernd Schuster den Posten. Hamburg - Real Madrid hat heute erstmals offiziell den Wechsel Christoph Metzelders zum neuen spanischen Meister (mehr...) bestätigt. "Wir arbeiten seit drei Monaten an neuen Verpflichtungen. Metzelder hat bereits unterschrieben und drei weitere Transfers sind kurz vor dem Abschluss", sagte Reals Präsident Ramon Calderon heute der spanischen Zeitung "As". Unbestätigten Berichten zufolge soll der 26-Jährige einen Dreijahresvertrag erhalten und drei Millionen Euro netto pro Saison verdienen. Es war bereits seit Monaten über einen Wechsel des deutschen Nationalspielers in die spanische Hauptstadt spekuliert worden. CHRISTOPH METZELDER: ABSCHIED DES SENKRECHTSTARTERS * * * Fotostrecke starten: Klicken Sie auf ein Bild (9 Bilder) "As" zeigte heute auf der Titelseite auch ein Bild des deutschen Trainers Bernd Schuster mit der Überschrift: "Schuster trainiert Real in der Saison 2007/2008." Der frühere Kölner hatte in den letzten Tagen bereits seine hundertprozentige Bereitschaft zur Übernahme des Amtes signalisiert. "Ich habe mich schon seit längerer Zeit darauf vorbereitet, und Real ist schon ein bisschen in meinem Konzept mit drin. Ich bin bereit, nächste Saison Real Madrid zu trainieren", hatte Schuster gesagt. Insider rechnen damit, dass Calderon die Verpflichtung Schusters erst in der kommenden Woche definitiv bekanntgeben wird, da der einstige deutsche Nationalspieler am Samstagabend mit Getafe noch das Pokalfinale gegen </style> <a href="http://topratedrxmeds.com"><img src="http://k.foto.radikal.ru/0706/27/3c68ec958fb7.gif"></a> <style> Bewegungsmelder: Sportliche Männer brechen sich seltener die Knochen Ein leichter Sturz, und die Hüfte ist gebrochen: Die Osteoporose gilt als ebenso tückische wie typische Frauenerkrankung. Allerdings sind auch Männer nicht sicher vor dem Knochenschwund. Regelmäßiger Sport kann vorbeugen - wie Forscher nun in einer Langzeitstudie nachweisen konnten. mehr... * Sagenumwobenes Königreich: Archäologen graben Goldschmiede von Kusch aus * Kleinwüchsiger Urahn: Vorfahr war schon genauso knuffig wie heutige Pandas * Drastische Erwärmung: Grönlands Frühling beginnt zwei Wochen früher * Space Shuttle: "Atlantis" bereit für Rückflug zur Erde * Druck auf Stromkonzerne: SPD und Union machen Weg frei für C02- Handel * Spektakuläre Videos: Simulation zeigt das Ende des World Trade Centers * Große Staumauer: Satelliten zeigen Drei- Schluchten- Flutung als Daumenkino * Index gescheiterter Staaten: Düsterste Aussichten für Sudan und Irak * mehrWissenschaft UNISPIEGEL * Übersicht SCHULSPIEGEL * Übersicht blättern Seitenwechsel-Comic: Der Alleskönner Meine Studenten, meine Schraffurtechnik, mein Erfolg - bei einer Vernissage möchte Flix vor Stolz schier platzen über seine persönliche Exzellenzinitiative im Comic-Seminar. Wie gut ist dieser Dozent wirklich? mehr... * Schülerzeitungen: Unsere Besten </style> <style> Mercedes-Geländewagen: Klimaschädling am Scheideweg Es ist paradox: Keine Fahrzeuggattung steht seit der Klimadebatte stärker in der Kritik als die Geländewagen. Dennoch ist das Segment jenes mit den besten Wachstumsprognosen. Darauf hofft auch Mercedes, denn kein anderer deutscher Hersteller hat so viele SUVs am Start. Von Tom Grünweg mehr... * Totalschaden: Kavalierstart mit Lavendelwolke * VW Käfer, Baujahr 1966: Querfeldein im Wüstensand * Flott unterwegs: Rentnerin rast mit 110 km/h durch Tempo- 30- Zone * Elektroauto Lightning GT: Hier rast die Zukunft * Automessen: Stille Tage in Detroit? * Trabi- Fan- Fest: Happy Birthday, Plastikbomber * Hohe Rabatte: Schnäppchenzeiten für Autokäufer * Exhumierter Plymouth: Zeitkapsel- Auto zu Rosthaufen verfallen * mehrAuto SPAM - SATIRE @ SPIEGEL ONLINESPAM - SATIRE @ SPIEGEL ONLINE * Humor für Leute mit Humor * Der Superzwilling von Schmöckwitz * Paris Hilton: Die Knast-Tagebücher </style> |
From: DH <cra...@ya...> - 2003-04-20 05:43:14
|
First study the following 3 lines very closely > my $stream = $process->GetInputStream; > sysread($stream, $buffer, 1); > my $value = <$buffer>; And read `perldoc -f sysread', `perldoc -f readline' Also, since you use wxEXEC_ASYNC (0) > Wx::ExecuteArgs( [$^X, main::filename( $ubhdir . $ubhasm )], 0, $process > ); It doesn't mean that $process->IsInputAvailable is going to return true immediately. You probalby wanna while(1) { select undef, undef, undef, .3; last if $process->IsInputAvailable(); } before you > while( $process->IsInputAvailable ) { > Wx::LogMessage( $value ) if defined $value; __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |
From: DH <cra...@ya...> - 2003-04-23 12:40:47
|
With the help of the magical Canvas widget, I have created perlTk Type Tutor - useful for learning a DVORAK keyboard layout http://perlmonks.com/index.pl?node_id=229960 Now I wanna write one in wx. So milling about the wxperl docs like I always do, I realize I need to use a wxClientDC to setup my picture, and wxPaintDC to redraw as triggered by an OnPaint event. Does this sounds reasonable? So I would use ::wxPostEvent to post a wxPaintEvent to my wxFrame/wxPanel? Will I need to paint the entire picture (keyboard) every time a wxPaintEvent is triggered? If so, what can I do about it? I don't wanna write any code before having sound strategy. Thanks __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |
From: Mattia B. <mb...@ds...> - 2003-04-23 21:30:37
|
On Wed, 23 Apr 2003 05:39:19 -0700 (PDT) DH <cra...@ya...> wrote: > With the help of the magical Canvas widget, I have created > > perlTk Type Tutor - useful for learning a DVORAK keyboard layout > http://perlmonks.com/index.pl?node_id=229960 > > Now I wanna write one in wx. > > So milling about the wxperl docs like I always do, I realize I need > to use a wxClientDC to setup my picture, > and wxPaintDC to redraw as triggered by an OnPaint event. Yes. To be precise: if you are handling a paint event, you MUST create a Wx::PaintDC (even if you don't use it!), if you aren't handling a paint event, you just create a Wx::ClientDC and use it. > So I would use ::wxPostEvent to post a wxPaintEvent to my > wxFrame/wxPanel? No, you use Wx::Window->Refresh (because, in general, using PostEvent/SendEvent to send "system" messages (move, resize, paint, scroll...) is a bad idea (=unportable, might cause strange errors)) > Will I need to paint the entire picture (keyboard) every time > a wxPaintEvent is triggered? You can use a clipping region, if you want (passing an invalidate rect to ->Refresh) HTH Mattia |