Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

_tkinter pt. 1 #5583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add _tkinter module and gate
  • Loading branch information
arihant2math authored and youknowone committed Mar 23, 2025
commit 04b3454c1770065eb49485ac07211b6fa747fe10
1 change: 1 addition & 0 deletions 1 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ bz2 = ["stdlib", "rustpython-stdlib/bz2"]
sqlite = ["rustpython-stdlib/sqlite"]
ssl = ["rustpython-stdlib/ssl"]
ssl-vendor = ["ssl", "rustpython-stdlib/ssl-vendor"]
tkinter = ["rustpython-stdlib/tkinter"]

[dependencies]
rustpython-compiler = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions 1 stdlib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ bz2 = ["bzip2"]
sqlite = ["dep:libsqlite3-sys"]
ssl = ["openssl", "openssl-sys", "foreign-types-shared", "openssl-probe"]
ssl-vendor = ["ssl", "openssl/vendored"]
tkinter = []

[dependencies]
# rustpython crates
Expand Down
7 changes: 7 additions & 0 deletions 7 stdlib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ mod termios;
)))]
mod uuid;

#[cfg(feature = "tkinter")]
mod tkinter;

use rustpython_common as common;
use rustpython_vm as vm;

Expand Down Expand Up @@ -192,5 +195,9 @@ pub fn get_module_inits() -> impl Iterator<Item = (Cow<'static, str>, StdlibInit
{
"_locale" => locale::make_module,
}
#[cfg(feature = "tkinter")]
{
"_tkinter" => tkinter::make_module,
}
}
}
6 changes: 6 additions & 0 deletions 6 stdlib/src/tkinter.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub(crate) use self::_tkinter::make_module;

#[pymodule]
mod _tkinter {

}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.