File tree 1 file changed +5
-10
lines changed
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;
3
3
#[ pymodule]
4
4
mod _tkinter {
5
5
use crate :: builtins:: PyTypeRef ;
6
- use rustpython_vm:: { PyResult , VirtualMachine , function:: OptionalArg } ;
7
6
use rustpython_vm:: function:: { Either , FuncArgs } ;
8
-
7
+ use rustpython_vm:: { PyResult , VirtualMachine , function:: OptionalArg } ;
8
+
9
9
use crate :: common:: lock:: PyRwLock ;
10
10
use std:: sync:: Arc ;
11
11
use tk:: cmd:: * ;
@@ -50,10 +50,7 @@ mod _tkinter {
50
50
}
51
51
52
52
#[ pyfunction]
53
- fn create (
54
- args : FuncArgs ,
55
- _vm : & VirtualMachine ,
56
- ) -> PyResult < TkApp > {
53
+ fn create ( args : FuncArgs , _vm : & VirtualMachine ) -> PyResult < TkApp > {
57
54
// TODO: handle arguements
58
55
// TODO: this means creating 2 tk instances is not possible.
59
56
let tk = Tk :: new ( ( ) ) . unwrap ( ) ;
@@ -86,10 +83,8 @@ mod _tkinter {
86
83
let tk = self . tk . read ( ) . unwrap ( ) ;
87
84
Ok ( tk. getvar ( name) . unwrap ( ) )
88
85
}
89
-
86
+
90
87
#[ pymethod]
91
- fn createcommand ( & self , name : String , callback : PyObjectRef ) {
92
-
93
- }
88
+ fn createcommand ( & self , name : String , callback : PyObjectRef ) { }
94
89
}
95
90
}
You can’t perform that action at this time.
0 commit comments