This repository has been archived on 2023-09-06. You can view files and clone it, but cannot push or open issues/pull-requests.
yutent
/
py-gtk-notes
Archived
1
0
Fork 0
master
yutent 2023-07-31 19:56:08 +08:00
parent 69c15d3f57
commit 3baf778260
1 changed files with 8 additions and 1 deletions

View File

@ -82,7 +82,8 @@ class WebKitWindow(Gtk.Window):
self.webview.load_uri("app:///index.html") self.webview.load_uri("app:///index.html")
# self.webview.load_uri("https://benchmark.wkit.fun") # self.webview.load_uri("https://benchmark.wkit.fun")
im.connect('preedit-changed', self.on_preedit_changed)
@ -92,6 +93,12 @@ class WebKitWindow(Gtk.Window):
self.add(self.webview) self.add(self.webview)
def on_preedit_changed(self, im):
print(p)
im.notify_focus_in()
im.notify_cursor_area(100, 200, 0,0)
def resource_request_callback(self, req): def resource_request_callback(self, req):