-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix pattern match when data possibly contains error - Fix generic script
- Loading branch information
Showing
6 changed files
with
142 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ | |
pub mod main; | ||
pub mod code_editor; | ||
pub mod pyenv; | ||
pub mod pyenv; | ||
pub mod terminal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
use eframe::egui::{Context, Id, Ui, Window}; | ||
|
||
use crate::impl_sub_window; | ||
|
||
use super::main::SubWindow; | ||
|
||
pub struct Terminal { | ||
size: (u32, u32), | ||
} | ||
|
||
impl Default for Terminal { | ||
fn default() -> Self { | ||
Terminal { size: (24, 80) } | ||
} | ||
} | ||
|
||
impl Terminal { | ||
fn show(&mut self, ui: &mut Ui) { | ||
ui.label("Terminal"); | ||
} | ||
} | ||
|
||
impl SubWindow for Terminal { | ||
fn show(&mut self, ctx: &Context, title: &str, id: &Id, open: &mut bool) { | ||
let window = Window::new(title) | ||
.id(id.to_owned()) | ||
.open(open) | ||
.resizable([false, false]); | ||
window.show(ctx, |ui| { | ||
self.show(ui); | ||
}); | ||
} | ||
} | ||
|
||
impl_sub_window!(Terminal, "Terminal"); |