The behaviour of the generalized Hilbert operator associated with a positive finite Borel measure $\mu$ on $[0,1)$ is investigated when it acts on weighted Banach spaces of holomorphic functions on the unit disc defined by sup-norms and on Korenblum type growth Banach spaces. It is studied when the operator is well defined, bounded and compact. To this aim, we study when it can be represented as an integral operator. We observe important differences with the behaviour of the Ces\`aro-type operator acting on these spaces, getting that boundedness and compactness are equivalent concepts for some standard weights. For the space of bounded holomorphic functions on the disc and for the Wiener algebra, we get also this equivalence, which is characterized in turn by the summability of the moments of the measure $\mu.$ In the latter case, it is also equivalent to nuclearity. Nuclearity of the generalized Hilbert operator acting on related spaces, such as the classical Hardy space, is also analyzed.