Shaft collars with oversized set screws or button head screws can be utilized to retain 3D printed wheels.
The longer set screw serves to both affects the caller to the gearbox shaft as well as keying into the 3D printed hub to ensure that the two spin together.