It is advised that you do not drive until you are confident that you can drive safely. Usually this is when you are doing most of your normal activities. In general this will be after 4 weeks of surgery. It is important that any pain has resolved sufficiently to enable you to perform an emergency stop. You should contact your insurance company to check their terms or you may not be fully insured.
To make sure it is safe to drive after this time, sit in a stationary car and practice an emergency stop by stamping on the brake pedal. If you have no discomfort in the wound area, then you should be all right to drive.