It took me several years for the penny to drop. The theme tune is Keith Mansfield's Soul Thing which is or was published by Keith Prowse Music the well known Music Library. Clearly the show was popular with the schoolboys who formed the band Uriel. I don't know which version of this tune was performed but it is almost not Queen St Gang theme which turned up on the Arzachel LP which was released in June 1969. The band Uriel was paid £250 to record an LP for Peter Wicker who put the LP out on small record label but as the band were contracted to Decca their name was altered to Arzachel and the names of the musicians were changed with ficticious biographies. The composition is correctly credited on the LP but back in 1978 when I found the LP i had no idea what ruminations needed to be unravelled about the origins of the music created by the schoolboys who recorded the LP. Steve Hillage and Dave Stewart of Egg and Hatfield were in the band and the others became drum roadie for Pink Floyd and other pursuits. In conclusion Queen St Gang theme was inspired by the TV teatime show and sadly not the theme itself for the show. It is also superb and may well have inspired the French band Air.