Home Download Buy Blog Forum Support

open multiple files once created

open multiple files once created

Postby apneadiving on Tue Nov 27, 2012 11:35 am

Hi,

I'm writing a plugin which has a command creating 3 files.

I want the 3 files to be opened and tabbed.

I thought this would do the trick but only one file is opened.

self.view.window().open_file(view_path, 1)
self.view.window().open_file(controller_path, 1)
self.view.window().open_file(base_coffee, 1)

Any insight please?
apneadiving
 
Posts: 5
Joined: Thu Jul 05, 2012 6:51 pm

Re: open multiple files once created

Postby apneadiving on Tue Nov 27, 2012 9:59 pm

Found it:

initial_window = self.view.window()
initial_window.open_file(view_path, 1)
initial_window.open_file(controller_path, 1)
initial_window.open_file(base_coffee, 1)
apneadiving
 
Posts: 5
Joined: Thu Jul 05, 2012 6:51 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 16 guests