File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ pub(crate) use self::_tkinter::make_module;
33#[ pymodule]
44mod _tkinter {
55 use crate :: builtins:: PyTypeRef ;
6- use rustpython_vm:: { PyResult , VirtualMachine , function:: OptionalArg } ;
76 use rustpython_vm:: function:: { Either , FuncArgs } ;
8-
7+ use rustpython_vm:: { PyResult , VirtualMachine , function:: OptionalArg } ;
8+
99 use crate :: common:: lock:: PyRwLock ;
1010 use std:: sync:: Arc ;
1111 use tk:: cmd:: * ;
@@ -50,10 +50,7 @@ mod _tkinter {
5050 }
5151
5252 #[ pyfunction]
53- fn create (
54- args : FuncArgs ,
55- _vm : & VirtualMachine ,
56- ) -> PyResult < TkApp > {
53+ fn create ( args : FuncArgs , _vm : & VirtualMachine ) -> PyResult < TkApp > {
5754 // TODO: handle arguements
5855 // TODO: this means creating 2 tk instances is not possible.
5956 let tk = Tk :: new ( ( ) ) . unwrap ( ) ;
@@ -86,10 +83,8 @@ mod _tkinter {
8683 let tk = self . tk . read ( ) . unwrap ( ) ;
8784 Ok ( tk. getvar ( name) . unwrap ( ) )
8885 }
89-
86+
9087 #[ pymethod]
91- fn createcommand ( & self , name : String , callback : PyObjectRef ) {
92-
93- }
88+ fn createcommand ( & self , name : String , callback : PyObjectRef ) { }
9489 }
9590}
You can’t perform that action at this time.
0 commit comments