An independent set of a connected graph is called a \emph{frame} if is connected. If , then is called a \emph{k-frame}. We prove the following theorem.
Let be an integer, be a connected graph with , and denote the degree of a vertex . Suppose that for every -frame such that , , , and , it holds that Then has a spanning tree with at most -leaves. Moreover, the condition is sharp.
This theorem is a generalization of the results of E. Flandrin, H.A. Jung, and H. Li (Discrete Math. and of A. Kyaw (Australasian Journal of Combinatorics. for traceability.