Skip to main content

All Questions

Tagged with
0 votes
0 answers
21 views

Getting double callback from Stringvar change when entry widget selection changed

I am trying to write a simple program which involves tracing text from the Entry widget and being passed to function for processing as a float. The problem I have is if I select the contents of the ...
RussellM's user avatar
0 votes
0 answers
67 views

C++ inlined events undefined during instantiation

I want to create inlined event functions if possible. Storing func pointers in a container isn't a way because they can't be inlined. The code in the event will be called always and I don't want to ...
Deus's user avatar
  • 1
1 vote
1 answer
47 views

Digital Micrograph - Callback to return a custom image on CameraAcquire() method

I'm doing some automation tests with Digital Micrograph and I would like to return a custom image from a specific folder when acquiring an image. I couldn't find a clear event in the documentation. Is ...
Fabio's user avatar
  • 15
0 votes
1 answer
60 views

Unable to return closure from closure due to lifetimes in generic type rust

I'm new to rust and I'm trying to rewrite library from kotlin to rust. It is callback event library. When trying to return closure from another closure it breaks on_event function that registries ...
Cherry's user avatar
  • 39
1 vote
2 answers
400 views

C++ List of member callback functions

I am going from C development to C++ on the STM32 platform and simply cant find a suitable solution for my problem. Please have a look at the simplified example code attached to this post. #include &...
Leon Reucher's user avatar
1 vote
2 answers
82 views

generic callback with data

There is already a very popular question about this topic but I don;t fully understand the answer. The goal is: I need a list (read a Vec) of "function pointers" that modify data stored ...
Makogan's user avatar
  • 9,151
0 votes
2 answers
340 views

Trigger events upwards for custom components

I have a custom made component called CoolButton. If I involve the component in another component like below, I'd somehow like to trigger the onClick-event, just like if it was a normal button. A ...
Soerman's user avatar
  • 194
0 votes
0 answers
177 views

How to execute code after returning view in Yii2

Normally when you call a page in Yii2, pretty much the last thing that happens is that the view is rendered to the end user's screen. I need to run code after this that might take a second or two and ...
Littlebob's user avatar
  • 155
0 votes
1 answer
594 views

C++ Event Dispatcher - callback casting problem

I'm venturing into creating an EventDispatcher using C++ 17 in Visual Studio 2022. Basically I store a string (id) to identify the event and a callback (lambda, function or method of a class) in a ...
Donavan Carvalho's user avatar
1 vote
1 answer
877 views

Node js Child process event emitter vs callbacks

Is there any difference between attaching callbacks or event listeners for child process in nodejs. like - const execute = require('child-process').exec; const process = execute('ping -n 1 www.google....
sahil aktar's user avatar
0 votes
1 answer
748 views

NodeJS, HTTP Request doesn't Call a Callback Sometimes

I'm developing a Request service under Nodejs. I'm using it in production for more than a year and it works fine, however, there are cases when it is stuck. It happens rarely on a particular kind of ...
Miroslav Popov's user avatar
0 votes
0 answers
44 views

How much memory does consume one notification event in Oracle?

I read an article, titled Event Monitor Process: Architecture and Known Issues (Doc ID 105067.1): ... In 10.1 onwards the procedures DBMS_AQADM.GET_WATERMARK and DBMS_AQADM.SET_WATERMARK are ...
Andrew Klimov's user avatar
4 votes
1 answer
504 views

Add/remove eventListeners while keeping instance context of "this"

I am trying to use the vanilla JS event system to send events between different components of my browser application (no NodeJS involved), by dispatching events to the window object. // method in ...
Cirrocumulus's user avatar
2 votes
2 answers
3k views

Blazor components: How to communicate from grandchild to child to parent or grandchild to parent

In my Blazor server app, I have a page called Home that is basically a search page. On the Home page (the "parent") there is a form with controls to filter the data stored in a backend ...
LWC433's user avatar
  • 23
1 vote
0 answers
345 views

How to get the index of a data point when the cursor clicks on it?

I have a scatter plot and I want to get the initial index of the data sample when clicked on it. fig, ax = plt.subplots() sc = plt.scatter(features[:, 0], features[:, 1], c=labels) On an on-click ...
Berkay Berabi's user avatar

15 30 50 per page
1
2 3 4 5
17