This file contains hidden or 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
import uiautomation as auto | |
# move mouse cursor over a text box with some text in it first | |
c = auto.ControlFromCursor() | |
v = c.GetValuePattern() | |
print(v.Value) # should print the contents of the text box | |
# now select some text in that same control | |
t = c.GetTextPattern() |
This file contains hidden or 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
use hecs::{ColumnBatchBuilder, ColumnBatchType, Component, TypeUnknownToCloner, World}; | |
fn try_add_type_to_batch<T: Component>( | |
archetype: &hecs::Archetype, | |
batch_type: &mut ColumnBatchType, | |
) { | |
if archetype.has::<T>() { | |
batch_type.add::<T>(); | |
} | |
} |
This file contains hidden or 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
OlderNewer