Mash the tofu until there is no moisture left.
Add chopped vegetables, egg, flour, salt, and pepper to the mashed tofu and mix well.
Shape the mixture into round, flat patties.
Heat cooking oil in a pan and cook the patties over medium heat until golden brown.
Flip and cook both sides until done.