# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from Foundation import * from AppKit import * from objc import YES, NO import os import munki import PyObjCTools munki.setupLogging() class MSUAppDelegate(NSObject): munkiStatusController = objc.IBOutlet() mainWindowController = objc.IBOutlet() update_view_controller = objc.IBOutlet() update_array_controller = objc.IBOutlet() optional_view_controller = objc.IBOutlet() optional_array_controller = objc.IBOutlet() _emptyImage = NSImage.imageNamed_("Empty.png") _restartImage = NSImage.imageNamed_("RestartReq.tif") _logoutImage = NSImage.imageNamed_("LogOutReq.tif")
# You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from objc import YES, NO, IBAction, IBOutlet import munki from Foundation import * from AppKit import * munki.setupLogging() class MSUupdatesViewController(NSViewController): ''' Controls the updates view of the main window ''' restartInfoFld = IBOutlet() restartImageFld = IBOutlet() descriptionView = IBOutlet() tableView = IBOutlet() optionalSoftwareBtn = IBOutlet() array_controller = IBOutlet() window_controller = IBOutlet() updateNowBtn = IBOutlet()