blob: 2ac8ae6522332eea27a0158c6cc4f08e2f492e86 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import curses
from ranger.gui.widget import Widget as SuperClass
class WTitleBar(SuperClass):
def feed_env(self, env):
self.pathway = env.pathway
def draw(self):
self.win.move(self.y, self.x)
for path in self.pathway:
currentx = self.win.getyx()[1]
self.win.addnstr(path.basename + ' / ', (self.wid - currentx))
|