Replies (21)

use gtk::prelude::*; use gtk::{Label, Window, WindowType}; fn main() { // Initialize GTK application gtk::init().expect("Failed to initialize GTK."); // Create a new window let window = Window::new(WindowType::Toplevel); window.set_title("Display Phrase"); window.set_default_size(200, 100); // Create a label widget let label = Label::new(Some("code is a language")); // Add the label to the window window.add(&label); // Connect the 'destroy' event to quit the application window.connect_delete_event(|_, _| { gtk::main_quit(); Inhibit(false) }); // Show all widgets window.show_all(); // Start the GTK main event loop gtk::main(); }
PHILIP's avatar
PHILIP 1 year ago
yes. but code works better with PRs πŸ˜‚
BHN 🍁's avatar
BHN 🍁 1 year ago
You reevaluate what it means to "be mean" and recalculate the mean.
Beautifully put. 8,000,000,000+ reevaluations.. I know bitcoin will one day enable this recalculationπŸ₯°
↑