fuxk
							parent
							
								
									69c15d3f57
								
							
						
					
					
						commit
						3baf778260
					
				
							
								
								
									
										9
									
								
								main.py
								
								
								
								
							
							
						
						
									
										9
									
								
								main.py
								
								
								
								
							|  | @ -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): | ||||||
|      |      | ||||||
|  |  | ||||||
		Reference in New Issue