inserting text on votton in text box
| From: | Iuri Fiedoruk | Date: | Tue, 29 Jan 2002 20:29:05 +0000 |
| Subject: | inserting text on votton in text box | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-1062@lists.php.net to get a copy of this message | ||
Hi! I'm starting a telnet/moo/mud client with php-gtk and I have started with a little test:
$fp = fsockopen($server_name, $port_nr, &$errno, &$errstr) or die("$errno: $errrstr");
set_socket_blocking($fp, 0);
for ($i=0; $i< 10; $i++) {
$msg = fgets($fp, 100);
$main_label->insert_text($msg,0);
usleep(400);
}
$main_label is a text box done in glade as the rest of the elements.
The thing is that this code adds text on $main_label on top, but I want it added on botton.
So If I do a telnet for my machine instead of:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
I get:
Escape character is '^]'.
Connected to localhost.
Trying 127.0.0.1...
As the second line is inserted on top of first....
As I have not found how to do it after searching for a time on google, mail lists, etc, I'm posting
here for help.
Anyone knows how I do text being inserted on botton? Thanks in advance.
--
Iuri Fiedoruk, Santa Maria, RS, Brasil.