diff options
author | Manuel Kaufmann <humitos@gmail.com> | 2012-11-02 15:55:29 (GMT) |
---|---|---|
committer | Manuel Kaufmann <humitos@gmail.com> | 2012-11-02 15:55:29 (GMT) |
commit | 74be1f80f1b8d985c7de82551a4a0d24a04fdfca (patch) | |
tree | aaadcc73d4afdf59d79dbc150ca8be104963a868 | |
parent | c868500ce4b24d39be66401d90b0491daa988d28 (diff) |
Maliit input device test
Script to check why "password" field does not show Maliit
-rw-r--r-- | tests/webkit_webview.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/webkit_webview.py b/tests/webkit_webview.py new file mode 100644 index 0000000..b9a841e --- /dev/null +++ b/tests/webkit_webview.py @@ -0,0 +1,42 @@ +from gi.repository import Gtk +from gi.repository import WebKit + + +HTML = ''' +<HTML> +<HEAD> + <TITLE>Test Page</TITLE> +</HEAD> + +<TABLE BORDER="0" CELLSPACING="2" CELLPADDING="2"> + <TR> + <TD ALIGN="RIGHT"><FONT SIZE="-1">User name:</FONT></TD> + <TD><INPUT NAME="loginname" SIZE="30" TYPE="text"></TD> + </TR> + <TR> + <TD ALIGN="RIGHT"><FONT SIZE="-1">Password:</FONT></TD> + <TD><INPUT NAME="password" TYPE="password" SIZE="30"></TD> + </TR> +</TABLE><BR> + +</HTML> +''' + + +class MyWindow(Gtk.Window): + + def __init__(self): + Gtk.Window.__init__(self, title="WebKit Maliit Input") + self.set_default_size(250, 200) + self.connect("delete-event", Gtk.main_quit) + + webview = WebKit.WebView() + webview.load_string(HTML, 'text/html', 'utf8', 'test') + + self.add(webview) + self.show_all() + + +if __name__ == '__main__': + win = MyWindow() + Gtk.main() |