my $dc = new Wx::ClientDC($frame); $dc->DrawLine(...);