mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
Merge pull request #22255 from r2d3:python_trackbar_macos
This commit is contained in:
commit
96a9cfab36
@ -1201,7 +1201,7 @@ static NSSize constrainAspectRatio(NSSize base, NSSize constraint) {
|
|||||||
(void)notification;
|
(void)notification;
|
||||||
int pos = [slider intValue];
|
int pos = [slider intValue];
|
||||||
NSString *temp = [self initialName];
|
NSString *temp = [self initialName];
|
||||||
NSString *text = [NSString stringWithFormat:@"%@ %d", temp, *value];
|
NSString *text = [NSString stringWithFormat:@"%@ %d", temp, pos];
|
||||||
[name setStringValue: text];
|
[name setStringValue: text];
|
||||||
if(value)
|
if(value)
|
||||||
*value = pos;
|
*value = pos;
|
||||||
|
Loading…
Reference in New Issue
Block a user