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
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 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>(); | |
} | |
} |
OlderNewer